I have done some research about this, but no success. Sorry if duplicate or dumb question.
Is there any way to disable lazy loading for specific query on Entity Framework 6? I want to use it regularly, but sometimes I want to disable it. I'm using virtual properties to lazy load them.
Thanks in advance.
Best regards, Marco Alves.
this.Configuration.LazyLoadingEnabled = false;
, then set it againthis.Configuration.LazyLoadingEnabled = true;
? Also, you can read this msdn.microsoft.com/en-us/data/jj574232.aspx – user1477388 Jun 3 '14 at 19:07