Table of Contents

Class ProjectionDefinition<TSource, TProjection>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Base class for projections.

public abstract class ProjectionDefinition<TSource, TProjection>

Type Parameters

TSource

The type of the source.

TProjection

The type of the projection.

Inheritance
ProjectionDefinition<TSource, TProjection>
Derived
Inherited Members

Methods

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

Operators

implicit operator ProjectionDefinition<TSource, TProjection>(BsonDocument)

Performs an implicit conversion from BsonDocument to ProjectionDefinition<TSource, TProjection>.

implicit operator ProjectionDefinition<TSource, TProjection>(ProjectionDefinition<TSource>)

Performs an implicit conversion from ProjectionDefinition<TSource> to ProjectionDefinition<TSource, TProjection>.

implicit operator ProjectionDefinition<TSource, TProjection>(string)

Performs an implicit conversion from string to ProjectionDefinition<TSource, TProjection>.