Interface IMongoDbRepository<TEntity>
Assembly: Volo.Abp.MongoDB.dll
Syntax
public interface IMongoDbRepository<TEntity> : IRepository<TEntity>, IReadOnlyRepository<TEntity>, IBasicRepository<TEntity>, IReadOnlyBasicRepository<TEntity>, IRepository where TEntity : class, IEntity
Type Parameters
Properties
Collection
Declaration
[Obsolete("Use GetCollectionAsync method.")]
IMongoCollection<TEntity> Collection { get; }
Property Value
| Type |
Description |
| MongoDB.Driver.IMongoCollection<><TEntity> |
|
Database
Declaration
[Obsolete("Use GetDatabaseAsync method.")]
IMongoDatabase Database { get; }
Property Value
| Type |
Description |
| MongoDB.Driver.IMongoDatabase |
|
Methods
GetAggregateAsync(CancellationToken, AggregateOptions)
Declaration
Task<IAggregateFluent<TEntity>> GetAggregateAsync(CancellationToken cancellationToken = default, AggregateOptions options = null)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
| MongoDB.Driver.AggregateOptions |
options |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><IAggregateFluent<TEntity>> |
|
GetCollectionAsync(CancellationToken)
Declaration
Task<IMongoCollection<TEntity>> GetCollectionAsync(CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><MongoDB.Driver.IMongoCollection<><TEntity>> |
|
GetDatabaseAsync(CancellationToken)
Declaration
Task<IMongoDatabase> GetDatabaseAsync(CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><MongoDB.Driver.IMongoDatabase> |
|
GetMongoQueryable()
Declaration
[Obsolete("Use GetMongoQueryableAsync method.")]
IMongoQueryable<TEntity> GetMongoQueryable()
Returns
| Type |
Description |
| MongoDB.Driver.Linq.IMongoQueryable<><TEntity> |
|
GetMongoQueryableAsync(CancellationToken, AggregateOptions)
Declaration
Task<IMongoQueryable<TEntity>> GetMongoQueryableAsync(CancellationToken cancellationToken = default, AggregateOptions options = null)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
| MongoDB.Driver.AggregateOptions |
options |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><MongoDB.Driver.Linq.IMongoQueryable<><TEntity>> |
|
Extension Methods