IFindFluentExtensions Class |
Inheritance Hierarchy
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntaxpublic 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 |
---|
  | Any<TDocument, TProjection> |
Determine if there are any results.
|
  | AnyAsync<TDocument, TProjection> |
Determine if there are any results.
|
  | 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.
|
Top
See Also