开发者

Advantage of Proxies when Lazy Loading is disabled

WHen we disable Lazy Lo开发者_运维技巧ading at the DbContext level, is there any advantage of still using Proxies?

Unless we disable Proxies explicitly (using: Configuration.ProxyCreationEnabled = false), they still get created.

Also, if I understand it right, unless ALL properties are marked as virtual, we actually don't get Change Tracking proxies.

So, what are the pros?


If you don't use lazy loading and dynamic change tracking there is no advantage of dynamic proxies and you can turn them off globally.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜