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
findIFindFluent<TDocument, TProjection>The fluent find.
projectionProjectionDefinition<TDocument, BsonDocument>The projection.
Returns
- IFindFluent<TDocument, BsonDocument>
The fluent find interface.
Type Parameters
TDocumentThe type of the document.
TProjectionThe 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
findIFindFluent<TDocument, TProjection>The fluent find.
projectionExpression<Func<TDocument, TNewProjection>>The projection.
Returns
- IFindFluent<TDocument, TNewProjection>
The fluent find interface.
Type Parameters
TDocumentThe type of the document.
TProjectionThe type of the projection (same as TDocument if there is no projection).
TNewProjectionThe type of the new projection.