Class EfCoreCommentRepository
Inheritance
System.Object
EfCoreCommentRepository
Implements
IAsyncEnumerable<Comment>
Inherited Members
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Comments.Comment>.FindAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Comments.Comment>.DeleteAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Comments.Comment>.EnsureCollectionLoadedAsync<TProperty>(Volo.Blogging.Comments.Comment, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Comments.Comment>.EnsurePropertyLoadedAsync<TProperty>(Volo.Blogging.Comments.Comment, Expression<>, CancellationToken)
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Blogging.EntityFrameworkCore.IBloggingDbContext, Volo.Blogging.Comments.Comment>.WithDetails(Expression<>[])
Namespace: Volo.Blogging.Comments
Assembly: Volo.Blogging.EntityFrameworkCore.dll
Syntax
public class EfCoreCommentRepository : EfCoreRepository<IBloggingDbContext, Comment, Guid>, IAsyncEnumerable<Comment>, IEfCoreRepository<Comment, Guid>, IEfCoreRepository<Comment>, IRepository<Comment>, IRepository<Comment, Guid>, ISupportsExplicitLoading<Comment, Guid>, ICommentRepository, IBasicRepository<Comment, Guid>
Constructors
EfCoreCommentRepository(IDbContextProvider<IBloggingDbContext>)
Declaration
public EfCoreCommentRepository(IDbContextProvider<IBloggingDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IBloggingDbContext> | dbContextProvider |
Methods
DeleteOfPost(Guid)
Declaration
public Task DeleteOfPost(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetCommentCountOfPostAsync(Guid)
Declaration
public Task<int> GetCommentCountOfPostAsync(Guid postId)
Parameters
Type | Name | Description |
---|---|---|
Guid | postId |
Returns
Type | Description |
---|---|
Task<System.Int32> |
GetListOfPostAsync(Guid)
Declaration
public Task<List<Comment>> GetListOfPostAsync(Guid postId)
Parameters
Type | Name | Description |
---|---|---|
Guid | postId |
Returns
Type | Description |
---|---|
Task<List<Comment>> |
GetRepliesOfComment(Guid)
Declaration
public Task<List<Comment>> GetRepliesOfComment(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<List<Comment>> |
Implements
IAsyncEnumerable<>