Class EfCoreBlogFeatureRepository
Inheritance
EfCoreBlogFeatureRepository
Implements
Inherited Members
Namespace: Volo.CmsKit.Blogs
Assembly: Volo.CmsKit.EntityFrameworkCore.dll
Syntax
public class EfCoreBlogFeatureRepository : EfCoreRepository<ICmsKitDbContext, BlogFeature, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<BlogFeature, Guid>, IEfCoreRepository<BlogFeature>, IRepository<BlogFeature, Guid>, IRepository<BlogFeature>, IReadOnlyRepository<BlogFeature, Guid>, IReadOnlyRepository<BlogFeature>, IBasicRepository<BlogFeature, Guid>, ISupportsExplicitLoading<BlogFeature>, IBlogFeatureRepository, IBasicRepository<BlogFeature, Guid>, IBasicRepository<BlogFeature>, IReadOnlyBasicRepository<BlogFeature, Guid>, IReadOnlyBasicRepository<BlogFeature>, IRepository
Constructors
EfCoreBlogFeatureRepository(IDbContextProvider<ICmsKitDbContext>)
Declaration
public EfCoreBlogFeatureRepository(IDbContextProvider<ICmsKitDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<ICmsKitDbContext> | dbContextProvider |
Methods
FindAsync(Guid, string, CancellationToken)
Declaration
public Task<BlogFeature> FindAsync(Guid blogId, string featureName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | blogId | |
string | featureName | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<BlogFeature> |
GetListAsync(Guid, List<string>, CancellationToken)
Declaration
public virtual Task<List<BlogFeature>> GetListAsync(Guid blogId, List<string> featureNames, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | blogId | |
List<string> | featureNames | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<BlogFeature>> |
GetListAsync(Guid, CancellationToken)
Declaration
public virtual Task<List<BlogFeature>> GetListAsync(Guid blogId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | blogId | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<BlogFeature>> |