动态更改ProxyCreationEnabled

时间:2013-02-10 14:01:14

标签: entity-framework

好吗?如果我将在EF 4.3中动态更改ProxyCreationEnabled配置的值?




    somecontext.Configuration.ProxyCreationEnabled = false;
    somecontext.Set().Get(id);
    somecontext.Configuration.ProxyCreationEnabled = true;
    ...

0 个答案:

没有答案