Method AsQueryable
AsQueryable(IMongoDatabase, AggregateOptions)
Creates a queryable source of documents.
public static IMongoQueryable<NoPipelineInput> AsQueryable(this IMongoDatabase database, AggregateOptions aggregateOptions = null)
Parameters
database
IMongoDatabaseThe database.
aggregateOptions
AggregateOptionsThe aggregate options
Returns
- IMongoQueryable<NoPipelineInput>
A queryable source of documents.
AsQueryable(IMongoDatabase, IClientSessionHandle, AggregateOptions)
Creates a queryable source of documents.
public static IMongoQueryable<NoPipelineInput> AsQueryable(this IMongoDatabase database, IClientSessionHandle session, AggregateOptions aggregateOptions = null)
Parameters
database
IMongoDatabaseThe collection.
session
IClientSessionHandleThe session.
aggregateOptions
AggregateOptionsThe aggregate options
Returns
- IMongoQueryable<NoPipelineInput>
A queryable source of documents.