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 |
IMongoCollection<TEntity> |
|
Database
Declaration
[Obsolete("Use GetDatabaseAsync method.")]
IMongoDatabase Database { get; }
Property Value
Type |
Description |
IMongoDatabase |
|
Methods
GetAggregateAsync(CancellationToken, AggregateOptions?)
Declaration
Task<IAggregateFluent<TEntity>> GetAggregateAsync(CancellationToken cancellationToken = default, AggregateOptions? options = null)
Parameters
Returns
Type |
Description |
Task<IAggregateFluent<TEntity>> |
|
GetCollectionAsync(CancellationToken)
Declaration
Task<IMongoCollection<TEntity>> GetCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Type |
Description |
Task<IMongoCollection<TEntity>> |
|
GetDatabaseAsync(CancellationToken)
Declaration
Task<IMongoDatabase> GetDatabaseAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Type |
Description |
Task<IMongoDatabase> |
|
GetMongoQueryable()
Declaration
[Obsolete("Use GetMongoQueryableAsync method.")]
IMongoQueryable<TEntity> GetMongoQueryable()
Returns
Type |
Description |
IMongoQueryable<TEntity> |
|
GetMongoQueryableAsync(CancellationToken, AggregateOptions?)
Declaration
Task<IMongoQueryable<TEntity>> GetMongoQueryableAsync(CancellationToken cancellationToken = default, AggregateOptions? options = null)
Parameters
Returns
Type |
Description |
Task<IMongoQueryable<TEntity>> |
|
Extension Methods