Table of Contents

Class BsonDocumentProjectionDefinition<TSource>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A BsonDocument based projection whose projection type is not yet known.

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

Type Parameters

TSource

The type of the source.

Inheritance
BsonDocumentProjectionDefinition<TSource>
Inherited Members
Extension Methods

Constructors

BsonDocumentProjectionDefinition(BsonDocument)

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

public BsonDocumentProjectionDefinition(BsonDocument document)

Parameters

document BsonDocument

The document.

Properties

Document

Gets the document.

public BsonDocument Document { get; }

Property Value

BsonDocument

Methods

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

public override BsonDocument Render(IBsonSerializer<TSource> sourceSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

sourceSerializer IBsonSerializer<TSource>

The source serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonDocument

A BsonDocument.