efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Allow proxy-creation to be temporarily disabled

Open ajcvickers opened this issue 7 years ago • 1 comments

See https://github.com/aspnet/EntityFrameworkCore/issues/11241#issuecomment-410321600

ajcvickers avatar Aug 05 '18 21:08 ajcvickers

the ability to disable lazy loading on an entity by entity basis would also be nice. We initially had lazy loading enable in our project but have tried to stop relying on it as it does not interact well with Serialization and async. Our long term goal is to be able to turn it off entirely, but it would be nice to be able to turn it off for new entities added to our DbContext in the meantime so we don't create new dependencies on it.

Applesauce314 avatar Aug 20 '24 13:08 Applesauce314

I'd also like it if we could have something like the AsNoTracking and AsTracking extension methods. It would allow certain queries to fully ignore any global proxy/lazy loading settings.

EraYaN avatar Nov 18 '25 08:11 EraYaN