EntityFramework.LazyLoading icon indicating copy to clipboard operation
EntityFramework.LazyLoading copied to clipboard

LazyLoading for EF Core

Results 4 EntityFramework.LazyLoading issues
Sort by recently updated
recently updated
newest added

I took a quick stab at trying to upgrade it but I got stuck at an error in LazyLoadingEntityMaterializerSource. The first time was instantiated currentDbContext was null, but after that...

UPDATE: After more digging, the extra calls are actually being caused by change tracking (on load!), which is causing the lazy loading to look up data when tracking asks for...

[PerDbContextCompiledQueryCache](https://github.com/darxis/EntityFramework.LazyLoading/blob/dev/src/Microsoft.EntityFrameworkCore.LazyLoading/Query/Internal/PerDbContextCompiledQueryCache.cs) makes compiled queries per context, obviously as its name suggests. As @darxis pointed out earlier, ICompiledQueryCache by default is registered as a [singleton in EF Core (see _coreServices Dictionary)](https://github.com/aspnet/EntityFramework/blob/dev/src/EFCore/Infrastructure/EntityFrameworkServicesBuilder.cs),...

enhancement
question

In the current version, for each Reference you need to define in your model a field of type LazyReference. Ex: ```c# public class Course { ... private LazyReference _departmentLazy =...

enhancement
help wanted