Can we avoid using Include when referencing an EF Core assembly

When we reference an EF Core assembly, we get the advantage of being able to use properties on the models, navigation properties being correctly named, etc.

However, one thing we lose is that with Linq2Sql, you don't need to include navigation properties, you can just do...

Customers.Single(c => c.Id == 3).Orders

...and it loads. When referencing an EF Core assembly, we have to do...

Customers.Include(c => c.Orders).Single(c => c.Id == 3).Orders

Is there a way of avoiding this? Thanks


Sign In or Register to comment.