darxis / EntityFramework.LazyLoading

LazyLoading for EF Core
MIT License
21 stars 4 forks source link

Simplify PerDbContextCompiledQueryCache and its setup #9

Closed voodookoop closed 7 years ago

voodookoop commented 7 years ago

Passing DbContext to PerDbContextCompiledQueryCache is unnecessary as IDbContextServices constructor already contains it as an ICurrentDbContext (therefore it can be set in constructor).

darxis commented 7 years ago

Thanks for the PR!

Looks good. I remember that doing the same in the LazyLoadingEntityMaterializerSource will not work, but I'm going to recheck it.

voodookoop commented 7 years ago

Cool, looking forward to get LazyLoading a solid extension of EF Core.