Method AsQueryable
AsQueryable(IMongoDatabase, AggregateOptions)
Creates a queryable source of documents.
public static IMongoQueryable<NoPipelineInput> AsQueryable(this IMongoDatabase database, AggregateOptions aggregateOptions = null)
Parameters
database
IMongoDatabase The database.
aggregateOptions
AggregateOptions The aggregate options
Returns
- IMongo
Queryable <NoPipeline >Input 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
IMongoDatabase The collection.
session
IClientSession Handle The session.
aggregateOptions
AggregateOptions The aggregate options
Returns
- IMongo
Queryable <NoPipeline >Input A queryable source of documents.