Browse Source
Merge pull request #15514 from andmattia/dev
Fix EfCoreBlogPostRepository & EfCoreBlogRepository to use ICmsKitDbC…
pull/15533/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Blogs/EfCoreBlogFeatureRepository.cs
-
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Blogs/EfCoreBlogPostRepository.cs
|
|
|
@ -10,9 +10,9 @@ using Volo.CmsKit.EntityFrameworkCore; |
|
|
|
|
|
|
|
namespace Volo.CmsKit.Blogs; |
|
|
|
|
|
|
|
public class EfCoreBlogFeatureRepository : EfCoreRepository<CmsKitDbContext, BlogFeature, Guid>, IBlogFeatureRepository |
|
|
|
public class EfCoreBlogFeatureRepository : EfCoreRepository<ICmsKitDbContext, BlogFeature, Guid>, IBlogFeatureRepository |
|
|
|
{ |
|
|
|
public EfCoreBlogFeatureRepository(IDbContextProvider<CmsKitDbContext> dbContextProvider) : base(dbContextProvider) |
|
|
|
public EfCoreBlogFeatureRepository(IDbContextProvider<ICmsKitDbContext> dbContextProvider) : base(dbContextProvider) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -16,12 +16,12 @@ using Volo.CmsKit.Users; |
|
|
|
|
|
|
|
namespace Volo.CmsKit.Blogs; |
|
|
|
|
|
|
|
public class EfCoreBlogPostRepository : EfCoreRepository<CmsKitDbContext, BlogPost, Guid>, IBlogPostRepository |
|
|
|
public class EfCoreBlogPostRepository : EfCoreRepository<ICmsKitDbContext, BlogPost, Guid>, IBlogPostRepository |
|
|
|
{ |
|
|
|
private EntityTagManager _entityTagManager; |
|
|
|
|
|
|
|
public EfCoreBlogPostRepository( |
|
|
|
IDbContextProvider<CmsKitDbContext> dbContextProvider, |
|
|
|
IDbContextProvider<ICmsKitDbContext> dbContextProvider, |
|
|
|
EntityTagManager entityTagManager) : base(dbContextProvider) |
|
|
|
{ |
|
|
|
_entityTagManager = entityTagManager; |
|
|
|
|