logoalt Hacker News

fabian2kyesterday at 8:47 PM1 replyview on HN

EF Core does not lazy load by default. You have to explicitly include relations if you want them on an entity. You can enable lazy loading, but in the default configuration you usually don't have the N+1 problem.


Replies

entropicdrifteryesterday at 8:54 PM

Isn't Linq a lazy-loading interface by default? The example they gave was a Linq query.

I'm not a C# user in my professional life so I'm happy to be corrected, BTW, just citing the source of my misinterpretation

show 1 reply