Class ExpressionFieldDefinition<TDocument, TField>
An Expression based field.
public sealed class ExpressionFieldDefinition<TDocument, TField> : FieldDefinition<TDocument, TField>
Type Parameters
TDocument
The type of the document.
TField
The type of the field.
- Inheritance
-
FieldDefinition<TDocument, TField>ExpressionFieldDefinition<TDocument, TField>
- Inherited Members
Constructors
- ExpressionFieldDefinition(Expression<Func<TDocument, TField>>)
Initializes a new instance of the ExpressionFieldDefinition<TDocument, TField> class.
Properties
- Expression
Gets the expression.
Methods
- Render(RenderArgs<TDocument>)
Renders the field to a RenderedFieldDefinition<TField>.