Class BsonDocumentProjectionDefinition<TSource>
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
-
ProjectionDefinition<TSource>BsonDocumentProjectionDefinition<TSource>
- Inherited Members
- Extension Methods
Constructors
BsonDocumentProjectionDefinition(BsonDocument)
Initializes a new instance of the BsonDocumentProjectionDefinition<TSource> class.
public BsonDocumentProjectionDefinition(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Properties
Document
Gets the document.
public BsonDocument Document { get; }
Property Value
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
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.