diff --git a/README.md b/README.md index 4322e7e..b64f4a3 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ public class MyDbContextFactory : IDbContextFactory // LazyLoading specific if (_isLazy) { - dbContextOptionsBuilder.ReplaceService>(); + dbContextOptionsBuilder.ReplaceService>(); dbContextOptionsBuilder.ReplaceService(); + dbContextOptionsBuilder.ReplaceService(); } @@ -36,7 +37,8 @@ public class MyDbContextFactory : IDbContextFactory // LazyLoading specific if (_isLazy) { - (ctx.GetService() as Microsoft.EntityFrameworkCore.LazyLoading.Internal.LazyLoadingEntityMaterializerSource).SetDbContext(ctx); + (ctx.GetService() as Microsoft.EntityFrameworkCore.LazyLoading.Metadata.Internal.LazyLoadingEntityMaterializerSource).SetDbContext(ctx); + (ctx.GetService() as Microsoft.EntityFrameworkCore.LazyLoading.Query.Internal.PerDbContextCompiledQueryCache).SetDbContext(ctx); } return ctx; diff --git a/src/Microsoft.EntityFrameworkCore.LazyLoading/Microsoft.EntityFrameworkCore.LazyLoading.csproj b/src/Microsoft.EntityFrameworkCore.LazyLoading/Microsoft.EntityFrameworkCore.LazyLoading.csproj index 96254f7..f5f5f36 100644 --- a/src/Microsoft.EntityFrameworkCore.LazyLoading/Microsoft.EntityFrameworkCore.LazyLoading.csproj +++ b/src/Microsoft.EntityFrameworkCore.LazyLoading/Microsoft.EntityFrameworkCore.LazyLoading.csproj @@ -2,13 +2,15 @@ netstandard1.3 - 1.1.1-beta1 + 1.1.1-beta2 darxis This package enables LazyLoading for EntityFramework Core Entity Framework Core EF EntityFramework LazyLoading Lazy Include DbContext EntityFrameworkCore https://github.com/darxis/EntityFramework.LazyLoading https://github.com/darxis/EntityFramework.LazyLoading + 1.1.1.1 + 1.1.1.1