Table of Contents

Class ClientSideDeserializationProjectionDefinition<TSource, TProjection>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A client side only projection that is implemented solely by deserializing using a different serializer.

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

Type Parameters

TSource

The type of the source.

TProjection

The type of the projection.

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

Constructors

ClientSideDeserializationProjectionDefinition(IBsonSerializer<TProjection>)

public ClientSideDeserializationProjectionDefinition(IBsonSerializer<TProjection> projectionSerializer = null)

Parameters

projectionSerializer IBsonSerializer<TProjection>

The projection serializer.

Properties

ResultSerializer

Gets the result serializer.

public IBsonSerializer<TProjection> ResultSerializer { get; }

Property Value

IBsonSerializer<TProjection>

The result serializer.

Methods

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

public override RenderedProjectionDefinition<TProjection> 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

RenderedProjectionDefinition<TProjection>

A RenderedProjectionDefinition<TProjection>.