Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: Lazy Loading and Proxy Creation Enablement

$
0
0
I notice that the Ef6 DataContext, by default, disables Lazy Loading and Proxy Creationg in the constructor:
Configuration.LazyLoadingEnabled = false;
Configuration.ProxyCreationEnabled = false;
I have implemented ASP.NET Identity 2 in my application Data Context and would like to enable Lazy Loading to help support custom entities in that framework. I have noticed that I have to enable both Lazy Loading and Proxy Creation to get the Lazy Loading feature to work.

From the URF perspective are there any downsides to re-enabling these properties (I think I understand the potential casting dangers from IEnumerable<> to IQueryable<>) is there anything else I would need to do?

Viewing all articles
Browse latest Browse all 1539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>