Section navigation

Public classSealed LeanFieldBinding<TDocument>

Namespace
Rowles.LeanCorpus.Mapping
Assembly
Rowles.LeanCorpus.dll

Field metadata for a LeanDocumentMap<TDocument>. The non-generic value type makes the binding collection iterable without knowing each field's CLR type.

public sealed class LeanFieldBinding<TDocument> : IFieldDescriptor

Type Parameters

TDocument

The mapped document model type.

Inheritance
LeanFieldBinding<TDocument>
Implements

Public constructor LeanFieldBinding(string, FieldType, bool, bool, bool)

Initialises a new LeanFieldBinding<TDocument>.

Public property FieldType

The runtime FieldType emitted for this field.

Public property IsIndexed

Whether the field is included in the inverted index.

Public property IsRequired

Whether the field is required by the generated schema.

Public property IsStored

Whether the field is persisted in stored fields.

Public property Name

The field name used at indexing time.