开发者

Advantage of Proxies when Lazy Loading is disabled

开发者 https://www.devze.com 2023-04-04 17:14 出处:网络
WHen we disable Lazy Lo开发者_运维技巧ading at the DbContext level, is there any advantage of still using Proxies?

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

精彩评论

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