好吗?如果我将在 EF 4.3 中动态更改 ProxyCreationEnabled 配置的值?
somecontext.Configuration.ProxyCreationEnabled = false;
somecontext.Set().Get(id);
somecontext.Configuration.ProxyCreationEnabled = true;
...
好吗?如果我将在 EF 4.3 中动态更改 ProxyCreationEnabled 配置的值?
somecontext.Configuration.ProxyCreationEnabled = false;
somecontext.Set().Get(id);
somecontext.Configuration.ProxyCreationEnabled = true;
...