Skip to content

Commit cb760e6

Browse files
authored
Merge pull request #7 from darxis/dev
1.1.1-beta2 release
2 parents 2f21fbe + fa92c5e commit cb760e6

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ public class MyDbContextFactory : IDbContextFactory<MyDbContext>
2525
// LazyLoading specific
2626
if (_isLazy)
2727
{
28-
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource, Microsoft.EntityFrameworkCore.LazyLoading.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>>();
28+
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource, Microsoft.EntityFrameworkCore.LazyLoading.Metadata.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>>();
2929
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector, Microsoft.EntityFrameworkCore.LazyLoading.Internal.ConcurrencyDetector>();
30+
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Query.Internal.ICompiledQueryCache, Microsoft.EntityFrameworkCore.LazyLoading.Query.Internal.PerDbContextCompiledQueryCache>();
3031
}
3132

3233

@@ -36,7 +37,8 @@ public class MyDbContextFactory : IDbContextFactory<MyDbContext>
3637
// LazyLoading specific
3738
if (_isLazy)
3839
{
39-
(ctx.GetService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource>() as Microsoft.EntityFrameworkCore.LazyLoading.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>).SetDbContext(ctx);
40+
(ctx.GetService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource>() as Microsoft.EntityFrameworkCore.LazyLoading.Metadata.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>).SetDbContext(ctx);
41+
(ctx.GetService<Microsoft.EntityFrameworkCore.Query.Internal.ICompiledQueryCache>() as Microsoft.EntityFrameworkCore.LazyLoading.Query.Internal.PerDbContextCompiledQueryCache).SetDbContext(ctx);
4042
}
4143

4244
return ctx;

src/Microsoft.EntityFrameworkCore.LazyLoading/Microsoft.EntityFrameworkCore.LazyLoading.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard1.3</TargetFramework>
5-
<Version>1.1.1-beta1</Version>
5+
<Version>1.1.1-beta2</Version>
66
<Authors>darxis</Authors>
77
<Company />
88
<Description>This package enables LazyLoading for EntityFramework Core</Description>
99
<PackageTags>Entity Framework Core EF EntityFramework LazyLoading Lazy Include DbContext EntityFrameworkCore</PackageTags>
1010
<RepositoryUrl>https://github.com/darxis/EntityFramework.LazyLoading</RepositoryUrl>
1111
<PackageProjectUrl>https://github.com/darxis/EntityFramework.LazyLoading</PackageProjectUrl>
12+
<AssemblyVersion>1.1.1.1</AssemblyVersion>
13+
<FileVersion>1.1.1.1</FileVersion>
1214
</PropertyGroup>
1315

1416
<ItemGroup>

0 commit comments

Comments
 (0)