Skip to content

Commit

Permalink
Merge pull request #7 from darxis/dev
Browse files Browse the repository at this point in the history
1.1.1-beta2 release
  • Loading branch information
darxis authored Apr 4, 2017
2 parents 2f21fbe + fa92c5e commit cb760e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public class MyDbContextFactory : IDbContextFactory<MyDbContext>
// LazyLoading specific
if (_isLazy)
{
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource, Microsoft.EntityFrameworkCore.LazyLoading.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>>();
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializerSource, Microsoft.EntityFrameworkCore.LazyLoading.Metadata.Internal.LazyLoadingEntityMaterializerSource<MyDbContext>>();
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector, Microsoft.EntityFrameworkCore.LazyLoading.Internal.ConcurrencyDetector>();
dbContextOptionsBuilder.ReplaceService<Microsoft.EntityFrameworkCore.Query.Internal.ICompiledQueryCache, Microsoft.EntityFrameworkCore.LazyLoading.Query.Internal.PerDbContextCompiledQueryCache>();
}


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

return ctx;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

<PropertyGroup>
<TargetFramework>netstandard1.3</TargetFramework>
<Version>1.1.1-beta1</Version>
<Version>1.1.1-beta2</Version>
<Authors>darxis</Authors>
<Company />
<Description>This package enables LazyLoading for EntityFramework Core</Description>
<PackageTags>Entity Framework Core EF EntityFramework LazyLoading Lazy Include DbContext EntityFrameworkCore</PackageTags>
<RepositoryUrl>https://github.com/darxis/EntityFramework.LazyLoading</RepositoryUrl>
<PackageProjectUrl>https://github.com/darxis/EntityFramework.LazyLoading</PackageProjectUrl>
<AssemblyVersion>1.1.1.1</AssemblyVersion>
<FileVersion>1.1.1.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit cb760e6

Please sign in to comment.