Guys it is possible configure on modelBuilder to set which Entities get related entities instead i use Include method on my LINQ queries?
PROS: I don't need to use Include Method on queries provided by my IRepository Interface, nor reference EntityFramework.dll
No it is not possible. You must either use eager loading, lazy loading or explicitly load each relation:
Include
. This will load relation during initial query in single database roundtrip.