Class EfCoreCommentRepository
Inheritance
System.Object
EfCoreCommentRepository
Implements
IAsyncEnumerable<Comment>
Inherited Members
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.CmsKit.EntityFrameworkCore.ICmsKitDbContext, Volo.CmsKit.Comments.Comment>.FindAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.CmsKit.EntityFrameworkCore.ICmsKitDbContext, Volo.CmsKit.Comments.Comment>.DeleteAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.CmsKit.EntityFrameworkCore.ICmsKitDbContext, Volo.CmsKit.Comments.Comment>.EnsureCollectionLoadedAsync<TProperty>(Volo.CmsKit.Comments.Comment, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.CmsKit.EntityFrameworkCore.ICmsKitDbContext, Volo.CmsKit.Comments.Comment>.EnsurePropertyLoadedAsync<TProperty>(Volo.CmsKit.Comments.Comment, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.CmsKit.EntityFrameworkCore.ICmsKitDbContext, Volo.CmsKit.Comments.Comment>.WithDetails(Expression<>[])
Namespace: Volo.CmsKit.Comments
Assembly: Volo.CmsKit.EntityFrameworkCore.dll
Syntax
public class EfCoreCommentRepository : EfCoreRepository<ICmsKitDbContext, Comment, Guid>, IAsyncEnumerable<Comment>, IEfCoreRepository<Comment, Guid>, IEfCoreRepository<Comment>, IRepository<Comment>, IRepository<Comment, Guid>, ISupportsExplicitLoading<Comment, Guid>, ICommentRepository, IBasicRepository<Comment, Guid>
Constructors
EfCoreCommentRepository(IDbContextProvider<ICmsKitDbContext>)
Declaration
public EfCoreCommentRepository(IDbContextProvider<ICmsKitDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<ICmsKitDbContext> | dbContextProvider |
Methods
DeleteWithRepliesAsync(Comment, CancellationToken)
Declaration
public Task DeleteWithRepliesAsync(Comment comment, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Comment | comment | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
GetListWithAuthorsAsync(String, String, CancellationToken)
Declaration
public Task<List<CommentWithAuthorQueryResultItem>> GetListWithAuthorsAsync(string entityType, string entityId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | entityType | |
System.String | entityId | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<CommentWithAuthorQueryResultItem>> |
Implements
IAsyncEnumerable<>