Table of Contents

Class BsonDocumentProjectionDefinition<TSource, TProjection>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A BsonDocument based projection.

public sealed class BsonDocumentProjectionDefinition<TSource, TProjection> : ProjectionDefinition<TSource, TProjection>

Type Parameters

TSource

The type of the source.

TProjection

The type of the projection.

Inheritance
ProjectionDefinition<TSource, TProjection>
BsonDocumentProjectionDefinition<TSource, TProjection>
Inherited Members

Constructors

BsonDocumentProjectionDefinition(BsonDocument, IBsonSerializer<TProjection>)

Initializes a new instance of the BsonDocumentProjectionDefinition<TSource, TProjection> class.

Properties

Document

Gets the document.

ProjectionSerializer

Gets the projection serializer.

Methods

Render(RenderArgs<TSource>)

Renders the projection to a RenderedProjectionDefinition<TProjection>.