Is there a way to disable lazy loading for given, specific navigation property?
I have database-first aproach, and I need to disable lazy loading for one given navigation property, because table that is connected to is so huge, that it makes my app load long time.
I tried to delete this prop from edmx model, but it broke all my LINQ to Entities queries that use this prop (even when it's loaded by .Include()).
NotSupportedException
The specified type member 'TimesheetWorklog' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
I found one way to do that, but it's not perfect. I created Partial class and moved this property to that class, to make it no-virtual, and disable lazy-loading, but edmx is still generating this prop in base model and makes me to discard changes whenever I update my edmx.
Thanks! Kris