Class StringFieldDefinition<TDocument>
A string based field name.
public sealed class StringFieldDefinition<TDocument> : FieldDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
FieldDefinition<TDocument>StringFieldDefinition<TDocument>
- Inherited Members
Constructors
StringFieldDefinition(string)
Initializes a new instance of the StringFieldDefinition<TDocument> class.
public StringFieldDefinition(string fieldName)
Parameters
fieldName
stringName of the field.
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.