Table of Contents

Method AsQueryable

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

AsQueryable(IMongoDatabase, AggregateOptions)

Creates a queryable source of documents.

public static IQueryable<NoPipelineInput> AsQueryable(this IMongoDatabase database, AggregateOptions aggregateOptions = null)

Parameters

database IMongoDatabase

The database.

aggregateOptions AggregateOptions

The aggregate options

Returns

IQueryable<NoPipelineInput>

A queryable source of documents.

AsQueryable(IMongoDatabase, IClientSessionHandle, AggregateOptions)

Creates a queryable source of documents.

public static IQueryable<NoPipelineInput> AsQueryable(this IMongoDatabase database, IClientSessionHandle session, AggregateOptions aggregateOptions = null)

Parameters

database IMongoDatabase

The collection.

session IClientSessionHandle

The session.

aggregateOptions AggregateOptions

The aggregate options

Returns

IQueryable<NoPipelineInput>

A queryable source of documents.