Entity framework 动态更改ProxyCreationEnabled
可以吗?如果我将动态更改EF 4.3中ProxyCreationEnabled配置的值Entity framework 动态更改ProxyCreationEnabled,entity-framework,Entity Framework,可以吗?如果我将动态更改EF 4.3中ProxyCreationEnabled配置的值 somecontext.Configuration.ProxyCreationEnabled = false; somecontext.Set().Get(id); somecontext.Configuration.ProxyCreationEnabled = true; ... 对。实际上,有时在运行时更改代理创建或延迟加载配置非常有用。是。实际上,有时在运行时更
somecontext.Configuration.ProxyCreationEnabled = false;
somecontext.Set().Get(id);
somecontext.Configuration.ProxyCreationEnabled = true;
...
对。实际上,有时在运行时更改代理创建或延迟加载配置非常有用。是。实际上,有时在运行时更改代理创建或延迟加载配置非常有用