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.
精彩评论