Table of Contents

Class IFindFluentExtensions

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll
public static class IFindFluentExtensions
Inheritance
IFindFluentExtensions
Inherited Members

Methods

AnyAsync<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Determine if there are any results.

Any<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Determine if there are any results.

FirstAsync<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Get the first result.

FirstOrDefaultAsync<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Get the first result or null.

FirstOrDefault<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Get the first result or null.

First<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Get the first result.

Project<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, ProjectionDefinition<TDocument, BsonDocument>)

Projects the result.

Project<TDocument, TProjection, TNewProjection>(IFindFluent<TDocument, TProjection>, Expression<Func<TDocument, TNewProjection>>)

Projects the result.

SingleAsync<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Gets a single result.

SingleOrDefaultAsync<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Gets a single result or null.

SingleOrDefault<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Gets a single result or null.

Single<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, CancellationToken)

Gets a single result.

SortByDescending<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, Expression<Func<TDocument, object>>)

Sorts the results by a descending field.

SortBy<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, Expression<Func<TDocument, object>>)

Sorts the results by an ascending field.

ThenByDescending<TDocument, TProjection>(IOrderedFindFluent<TDocument, TProjection>, Expression<Func<TDocument, object>>)

Adds a descending field to the existing sort.

ThenBy<TDocument, TProjection>(IOrderedFindFluent<TDocument, TProjection>, Expression<Func<TDocument, object>>)

Adds an ascending field to the existing sort.