DEV Community

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

apung profile image
Abdul Gaffur A Dama

Use lazy loading proxy from Microsoft.EntityFrameworkCore.Proxies package, so you can get better sleep

sduduzog profile image
Beautus S Gumede Author

I'll look this up! Thanks

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.