Show / Hide Table of Contents

Class EfCoreCommentRepository

Inheritance
object
BasicRepositoryBase<Comment>
RepositoryBase<Comment>
EfCoreRepository<ICmsKitDbContext, Comment>
EfCoreRepository<ICmsKitDbContext, Comment, Guid>
EfCoreCommentRepository
Implements
IServiceProviderAccessor
IUnitOfWorkEnabled
IUnitOfWorkManagerAccessor
IEfCoreRepository<Comment, Guid>
IEfCoreRepository<Comment>
IRepository<Comment, Guid>
IRepository<Comment>
IReadOnlyRepository<Comment, Guid>
IReadOnlyRepository<Comment>
IBasicRepository<Comment, Guid>
ISupportsExplicitLoading<Comment>
ICommentRepository
IBasicRepository<Comment, Guid>
IBasicRepository<Comment>
IReadOnlyBasicRepository<Comment, Guid>
IReadOnlyBasicRepository<Comment>
IRepository
Inherited Members
EfCoreRepository<ICmsKitDbContext, Comment, Guid>.GetAsync(Guid, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment, Guid>.FindAsync(Guid, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment, Guid>.DeleteAsync(Guid, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment, Guid>.DeleteManyAsync(IEnumerable<Guid>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetDbContextAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.GetDbSetAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.GetDbConnectionAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.GetDbTransactionAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.InsertAsync(Comment, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.InsertManyAsync(IEnumerable<Comment>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.UpdateAsync(Comment, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.UpdateManyAsync(IEnumerable<Comment>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.DeleteAsync(Comment, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.DeleteManyAsync(IEnumerable<Comment>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetListAsync(bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetListAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetCountAsync(CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetPagedListAsync(int, int, string, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.GetQueryable()
EfCoreRepository<ICmsKitDbContext, Comment>.GetQueryableAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.SaveChangesAsync(CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.FindAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.DeleteAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.DeleteDirectAsync(Expression<Func<Comment, bool>>, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.EnsureCollectionLoadedAsync<TProperty>(Comment, Expression<Func<Comment, IEnumerable<TProperty>>>, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.EnsurePropertyLoadedAsync<TProperty>(Comment, Expression<Func<Comment, TProperty>>, CancellationToken)
EfCoreRepository<ICmsKitDbContext, Comment>.WithDetails()
EfCoreRepository<ICmsKitDbContext, Comment>.WithDetailsAsync()
EfCoreRepository<ICmsKitDbContext, Comment>.WithDetails(params Expression<Func<Comment, object>>[])
EfCoreRepository<ICmsKitDbContext, Comment>.WithDetailsAsync(params Expression<Func<Comment, object>>[])
EfCoreRepository<ICmsKitDbContext, Comment>.CheckAndSetId(Comment)
EfCoreRepository<ICmsKitDbContext, Comment>.TrySetGuidId(IEntity<Guid>)
EfCoreRepository<ICmsKitDbContext, Comment>.DbContext
EfCoreRepository<ICmsKitDbContext, Comment>.DbSet
EfCoreRepository<ICmsKitDbContext, Comment>.AbpEntityOptions
EfCoreRepository<ICmsKitDbContext, Comment>.GuidGenerator
EfCoreRepository<ICmsKitDbContext, Comment>.BulkOperationProvider
RepositoryBase<Comment>.WithDetails()
RepositoryBase<Comment>.WithDetails(params Expression<Func<Comment, object>>[])
RepositoryBase<Comment>.WithDetailsAsync()
RepositoryBase<Comment>.WithDetailsAsync(params Expression<Func<Comment, object>>[])
RepositoryBase<Comment>.GetQueryable()
RepositoryBase<Comment>.GetQueryableAsync()
RepositoryBase<Comment>.FindAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
RepositoryBase<Comment>.GetAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
RepositoryBase<Comment>.DeleteAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
RepositoryBase<Comment>.DeleteDirectAsync(Expression<Func<Comment, bool>>, CancellationToken)
RepositoryBase<Comment>.ApplyDataFilters<TQueryable>(TQueryable)
RepositoryBase<Comment>.ApplyDataFilters<TQueryable, TOtherEntity>(TQueryable)
BasicRepositoryBase<Comment>.InsertAsync(Comment, bool, CancellationToken)
BasicRepositoryBase<Comment>.InsertManyAsync(IEnumerable<Comment>, bool, CancellationToken)
BasicRepositoryBase<Comment>.SaveChangesAsync(CancellationToken)
BasicRepositoryBase<Comment>.UpdateAsync(Comment, bool, CancellationToken)
BasicRepositoryBase<Comment>.UpdateManyAsync(IEnumerable<Comment>, bool, CancellationToken)
BasicRepositoryBase<Comment>.DeleteAsync(Comment, bool, CancellationToken)
BasicRepositoryBase<Comment>.DeleteManyAsync(IEnumerable<Comment>, bool, CancellationToken)
BasicRepositoryBase<Comment>.GetListAsync(bool, CancellationToken)
BasicRepositoryBase<Comment>.GetListAsync(Expression<Func<Comment, bool>>, bool, CancellationToken)
BasicRepositoryBase<Comment>.GetCountAsync(CancellationToken)
BasicRepositoryBase<Comment>.GetPagedListAsync(int, int, string, bool, CancellationToken)
BasicRepositoryBase<Comment>.GetCancellationToken(CancellationToken)
BasicRepositoryBase<Comment>.ShouldTrackingEntityChange()
BasicRepositoryBase<Comment>.LazyServiceProvider
BasicRepositoryBase<Comment>.ServiceProvider
BasicRepositoryBase<Comment>.DataFilter
BasicRepositoryBase<Comment>.CurrentTenant
BasicRepositoryBase<Comment>.AsyncExecuter
BasicRepositoryBase<Comment>.UnitOfWorkManager
BasicRepositoryBase<Comment>.CancellationTokenProvider
BasicRepositoryBase<Comment>.LoggerFactory
BasicRepositoryBase<Comment>.Logger
BasicRepositoryBase<Comment>.EntityChangeTrackingProvider
BasicRepositoryBase<Comment>.IsChangeTrackingEnabled
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Comments
Assembly: Volo.CmsKit.EntityFrameworkCore.dll
Syntax
public class EfCoreCommentRepository : EfCoreRepository<ICmsKitDbContext, Comment, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<Comment, Guid>, IEfCoreRepository<Comment>, IRepository<Comment, Guid>, IRepository<Comment>, IReadOnlyRepository<Comment, Guid>, IReadOnlyRepository<Comment>, IBasicRepository<Comment, Guid>, ISupportsExplicitLoading<Comment>, ICommentRepository, IBasicRepository<Comment, Guid>, IBasicRepository<Comment>, IReadOnlyBasicRepository<Comment, Guid>, IReadOnlyBasicRepository<Comment>, IRepository

Constructors

EfCoreCommentRepository(IDbContextProvider<ICmsKitDbContext>)

Declaration
public EfCoreCommentRepository(IDbContextProvider<ICmsKitDbContext> dbContextProvider)
Parameters
Type Name Description
IDbContextProvider<ICmsKitDbContext> dbContextProvider

Methods

DeleteWithRepliesAsync(Comment, CancellationToken)

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

ExistsAsync(string, CancellationToken)

Declaration
public virtual 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
public virtual 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
public virtual 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>>

GetListQueryAsync(string, string, Guid?, string, DateTime?, DateTime?, CommentApproveState)

Declaration
protected virtual Task<IQueryable<CommentWithAuthorQueryResultItem>> GetListQueryAsync(string filter = null, string entityType = null, Guid? repliedCommentId = null, string authorUsername = null, DateTime? creationStartDate = null, DateTime? creationEndDate = null, CommentApproveState commentApproveState = CommentApproveState.All)
Parameters
Type Name Description
string filter
string entityType
Guid? repliedCommentId
string authorUsername
DateTime? creationStartDate
DateTime? creationEndDate
CommentApproveState commentApproveState
Returns
Type Description
Task<IQueryable<CommentWithAuthorQueryResultItem>>

GetListWithAuthorsAsync(string, string, CommentApproveState, CancellationToken)

Declaration
public virtual 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
public virtual Task<CommentWithAuthorQueryResultItem> GetWithAuthorAsync(Guid id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid id
CancellationToken cancellationToken
Returns
Type Description
Task<CommentWithAuthorQueryResultItem>

Implements

IServiceProviderAccessor
IUnitOfWorkEnabled
IUnitOfWorkManagerAccessor
IEfCoreRepository<TEntity, TKey>
IEfCoreRepository<TEntity>
IRepository<TEntity, TKey>
IRepository<TEntity>
IReadOnlyRepository<TEntity, TKey>
IReadOnlyRepository<TEntity>
IBasicRepository<TEntity, TKey>
ISupportsExplicitLoading<TEntity>
ICommentRepository
IBasicRepository<TEntity, TKey>
IBasicRepository<TEntity>
IReadOnlyBasicRepository<TEntity, TKey>
IReadOnlyBasicRepository<TEntity>
IRepository

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