DEV Community

loading...

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

Collapse
apung profile image
Abdul Gaffur A Dama

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

Collapse
sduduzog profile image
Beautus S Gumede Author

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.