Home > Net >  How to Load Nested navigation properties in Entity Framework?
How to Load Nested navigation properties in Entity Framework?

Time:12-07

If we have some nested collection (navigation property) in the entity model and this navigation also has a navigation property, what can you load using Entity Framework with minimal performance penalty?

CodePudding user response:

enter image description here

as use see the name of the navigation matters

CodePudding user response:

You should use ThenInclude, to build up an expression tree

https://entityframeworkcore.com/querying-data-include-theninclude

  • Related