Class ExpressionFieldDefinition<TDocument>
An Expression based field.
public sealed class ExpressionFieldDefinition<TDocument> : FieldDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
FieldDefinition<TDocument>ExpressionFieldDefinition<TDocument>
- Inherited Members
Constructors
ExpressionFieldDefinition(LambdaExpression)
Initializes a new instance of the ExpressionFieldDefinition<TDocument> class.
public ExpressionFieldDefinition(LambdaExpression expression)
Parameters
expression
LambdaExpressionThe expression.
Properties
Expression
Gets the expression.
public LambdaExpression Expression { get; }
Property Value
Methods
Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)
Renders the field to a string.
public override RenderedFieldDefinition Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.