Show / Hide Table of Contents

Interface ICommentRepository

Inherited Members
IBasicRepository<Comment, Guid>.DeleteAsync(Guid, bool, CancellationToken)
IBasicRepository<Comment, Guid>.DeleteManyAsync(IEnumerable<Guid>, bool, CancellationToken)
IBasicRepository<Comment>.InsertAsync(Comment, bool, CancellationToken)
IBasicRepository<Comment>.InsertManyAsync(IEnumerable<Comment>, bool, CancellationToken)
IBasicRepository<Comment>.UpdateAsync(Comment, bool, CancellationToken)
IBasicRepository<Comment>.UpdateManyAsync(IEnumerable<Comment>, bool, CancellationToken)
IBasicRepository<Comment>.DeleteAsync(Comment, bool, CancellationToken)
IBasicRepository<Comment>.DeleteManyAsync(IEnumerable<Comment>, bool, CancellationToken)
IReadOnlyBasicRepository<Comment, Guid>.GetAsync(Guid, bool, CancellationToken)
IReadOnlyBasicRepository<Comment, Guid>.FindAsync(Guid, bool, CancellationToken)
IReadOnlyBasicRepository<Comment>.GetListAsync(bool, CancellationToken)
IReadOnlyBasicRepository<Comment>.GetCountAsync(CancellationToken)
IReadOnlyBasicRepository<Comment>.GetPagedListAsync(int, int, string, bool, CancellationToken)
IRepository.IsChangeTrackingEnabled
Namespace: Volo.CmsKit.Comments
Assembly: Volo.CmsKit.Domain.dll
Syntax
public interface ICommentRepository : IBasicRepository<Comment, Guid>, IBasicRepository<Comment>, IReadOnlyBasicRepository<Comment, Guid>, IReadOnlyBasicRepository<Comment>, IRepository

Methods

DeleteWithRepliesAsync(Comment, CancellationToken)

Declaration
Task DeleteWithRepliesAsync(Comment comment, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Comment comment
CancellationToken cancellationToken
Returns
Type Description
Task

ExistsAsync(string, CancellationToken)

Declaration
Task<bool> ExistsAsync(string idempotencyToken, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string idempotencyToken
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

GetCountAsync(string, string, Guid?, string, DateTime?, DateTime?, CommentApproveState, CancellationToken)

Declaration
Task<long> GetCountAsync(string text = null, string entityType = null, Guid? repliedCommentId = null, string authorUsername = null, DateTime? creationStartDate = null, DateTime? creationEndDate = null, CommentApproveState commentApproveState = CommentApproveState.All, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string text
string entityType
Guid? repliedCommentId
string authorUsername
DateTime? creationStartDate
DateTime? creationEndDate
CommentApproveState commentApproveState
CancellationToken cancellationToken
Returns
Type Description
Task<long>

GetListAsync(string, string, Guid?, string, DateTime?, DateTime?, string, int, int, CommentApproveState, CancellationToken)

Declaration
Task<List<CommentWithAuthorQueryResultItem>> GetListAsync(string filter = null, string entityType = null, Guid? repliedCommentId = null, string authorUsername = null, DateTime? creationStartDate = null, DateTime? creationEndDate = null, string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, CommentApproveState commentApproveState = CommentApproveState.All, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string filter
string entityType
Guid? repliedCommentId
string authorUsername
DateTime? creationStartDate
DateTime? creationEndDate
string sorting
int maxResultCount
int skipCount
CommentApproveState commentApproveState
CancellationToken cancellationToken
Returns
Type Description
Task<List<CommentWithAuthorQueryResultItem>>

GetListWithAuthorsAsync(string, string, CommentApproveState, CancellationToken)

Declaration
Task<List<CommentWithAuthorQueryResultItem>> GetListWithAuthorsAsync(string entityType, string entityId, CommentApproveState commentApproveState = CommentApproveState.All, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string entityType
string entityId
CommentApproveState commentApproveState
CancellationToken cancellationToken
Returns
Type Description
Task<List<CommentWithAuthorQueryResultItem>>

GetWithAuthorAsync(Guid, CancellationToken)

Declaration
Task<CommentWithAuthorQueryResultItem> GetWithAuthorAsync(Guid id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid id
CancellationToken cancellationToken
Returns
Type Description
Task<CommentWithAuthorQueryResultItem>

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform