Class FindFluentBase<TDocument, TProjection>
Base class for implementors of IFindFluent<TDocument, TProjection>.
public abstract class FindFluentBase<TDocument, TProjection> : IOrderedFindFluent<TDocument, TProjection>, IFindFluent<TDocument, TProjection>, IAsyncCursorSource<TProjection>
Type Parameters
TDocument
The type of the document.
TProjection
The type of the projection (same as TDocument if there is no projection).
- Inheritance
-
FindFluentBase<TDocument, TProjection>
- Implements
-
IOrderedFindFluent<TDocument, TProjection>IFindFluent<TDocument, TProjection>IAsyncCursorSource<TProjection>
- Inherited Members
- Extension Methods
Properties
- Filter
Gets or sets the filter.
- Options
Gets the options.
Methods
- As<TResult>(IBsonSerializer<TResult>)
A simplified type of projection that changes the result type by using a different serializer.
- Count(CancellationToken)
Counts the number of documents.
- CountAsync(CancellationToken)
Counts the number of documents.
- CountDocuments(CancellationToken)
Counts the number of documents.
- CountDocumentsAsync(CancellationToken)
Counts the number of documents.
- Limit(int?)
Limits the number of documents.
- Project<TNewProjection>(ProjectionDefinition<TDocument, TNewProjection>)
Projects the the result.
- Skip(int?)
Skips the the specified number of documents.
- Sort(SortDefinition<TDocument>)
Sorts the the documents.
- ToCursor(CancellationToken)
Executes the operation and returns a cursor to the results.
- ToCursorAsync(CancellationToken)
Executes the operation and returns a cursor to the results.