IFindFluentExtensions Class |
Inheritance Hierarchy
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public static class IFindFluentExtensions
<ExtensionAttribute>
Public NotInheritable Class IFindFluentExtensions
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type IFindFluentExtensions = class end
The IFindFluentExtensions type exposes the following members.
Methods
| Name | Description |
---|
| First<TDocument, TProjection> |
Get the first result.
|
| FirstAsync<TDocument, TProjection> |
Get the first result.
|
| FirstOrDefault<TDocument, TProjection> |
Get the first result or null.
|
| FirstOrDefaultAsync<TDocument, TProjection> |
Get the first result or null.
|
| 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.
|
| Single<TDocument, TProjection> |
Gets a single result.
|
| SingleAsync<TDocument, TProjection> |
Gets a single result.
|
| SingleOrDefault<TDocument, TProjection> |
Gets a single result or null.
|
| SingleOrDefaultAsync<TDocument, TProjection> |
Gets a single result or null.
|
| SortBy<TDocument, TProjection> |
Sorts the results by an ascending field.
|
| SortByDescending<TDocument, TProjection> |
Sorts the results by a descending field.
|
| ThenBy<TDocument, TProjection> |
Adds an ascending field to the existing sort.
|
| ThenByDescending<TDocument, TProjection> |
Adds a descending field to the existing sort.
|
TopSee Also