Table of Contents

Class StringFieldDefinition<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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 string

Name 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 IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

RenderedFieldDefinition

A string.