Class MongoCommentRepository
Inheritance
System.Object
MongoCommentRepository
Implements
IMongoQueryable<Comment>
Inherited Members
MongoDbRepository<IBloggingMongoDbContext, Comment, Guid>.GetAsync(Guid, Boolean, CancellationToken)
MongoDbRepository<IBloggingMongoDbContext, Comment>.InsertAsync(Comment, Boolean, CancellationToken)
MongoDbRepository<IBloggingMongoDbContext, Comment>.UpdateAsync(Comment, Boolean, CancellationToken)
MongoDbRepository<IBloggingMongoDbContext, Comment>.DeleteAsync(Comment, Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.MongoDB.MongoDbRepository<Volo.Blogging.MongoDB.IBloggingMongoDbContext, Volo.Blogging.Comments.Comment>.DeleteAsync(Expression<>, System.Boolean, CancellationToken)
Volo.Abp.Domain.Repositories.MongoDB.MongoDbRepository<Volo.Blogging.MongoDB.IBloggingMongoDbContext, Volo.Blogging.Comments.Comment>.FindAsync(Expression<>, System.Boolean, CancellationToken)
Namespace: Volo.Blogging.Comments
Assembly: Volo.Blogging.MongoDB.dll
Syntax
public class MongoCommentRepository : MongoDbRepository<IBloggingMongoDbContext, Comment, Guid>, IMongoQueryable<Comment>, IMongoDbRepository<Comment, Guid>, IMongoDbRepository<Comment>, IRepository<Comment>, IRepository<Comment, Guid>, ICommentRepository, IBasicRepository<Comment, Guid>
Constructors
MongoCommentRepository(IMongoDbContextProvider<IBloggingMongoDbContext>)
Declaration
public MongoCommentRepository(IMongoDbContextProvider<IBloggingMongoDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IMongoDbContextProvider<IBloggingMongoDbContext> | 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
IMongoQueryable<>