Method Project
Project<TDocument, TProjection>(IFindFluent<TDocument, TProjection>, ProjectionDefinition<TDocument, BsonDocument>)
Projects the result.
public static IFindFluent<TDocument, BsonDocument> Project<TDocument, TProjection>(this IFindFluent<TDocument, TProjection> find, ProjectionDefinition<TDocument, BsonDocument> projection)
Parameters
find
IFindFluent <TDocument, TProjection>The fluent find.
projection
ProjectionDefinition <TDocument, BsonDocument >The projection.
Returns
- IFind
Fluent <TDocument, BsonDocument > The fluent find interface.
Type Parameters
TDocument
The type of the document.
TProjection
The type of the projection (same as TDocument if there is no projection).
Project<TDocument, TProjection, TNewProjection>(IFindFluent<TDocument, TProjection>, Expression<Func<TDocument, TNewProjection>>)
Projects the result.
public static IFindFluent<TDocument, TNewProjection> Project<TDocument, TProjection, TNewProjection>(this IFindFluent<TDocument, TProjection> find, Expression<Func<TDocument, TNewProjection>> projection)
Parameters
find
IFindFluent <TDocument, TProjection>The fluent find.
projection
Expression<Func<TDocument, TNewProjection>>The projection.
Returns
- IFind
Fluent <TDocument, TNewProjection> The fluent find interface.
Type Parameters
TDocument
The type of the document.
TProjection
The type of the projection (same as TDocument if there is no projection).
TNewProjection
The type of the new projection.