Disable LazyLoading in EFCore driver

edited November 29
Is it possible to avoid using LazyLoading with the EFCore driver? The reason this is needed is that lazy-loading is not supported for detached entities, so, for example, if a query uses an extension method for an entity that accesses its "navigation" property, an exception is thrown.

Comments

  • Another reason to disable LazyLoading is that it doesn't support AsNoTracking, which is often used in production apps, so LINQPad can't be used to quickly debug a real query by just copy/pasting anymore.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!