Class ObjectProjectionDefinition<TSource>
An Object based projection whose projection type is not yet known.
public sealed class ObjectProjectionDefinition<TSource> : ProjectionDefinition<TSource>
Type Parameters
TSource
The type of the source.
- Inheritance
-
ProjectionDefinition<TSource>ObjectProjectionDefinition<TSource>
- Inherited Members
- Extension Methods
Constructors
ObjectProjectionDefinition(object)
Initializes a new instance of the ObjectProjectionDefinition<TSource> class.
public ObjectProjectionDefinition(object obj)
Parameters
obj
objectThe object.
Properties
Object
Gets the object.
public object Object { 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.