DEV Community

Discussion on: C# and .NET Core Appreciation Post. The most beautiful piece of code I have ever seen... this month!

Collapse
 
sduduzog profile image
Sdu

I'll look this up! Thanks

Collapse
 
balassamarton profile image
Márton Balassa

Lazy loading navigations can easily lead to accidental N+1 queries. You can explicitly include navigations with DbSet<>.Include.