Section navigation

Public classSealed LeanField<TDocument, TValue>

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

Strongly typed field descriptor produced by the LeanCorpus source generator. Carries the field name, runtime FieldType, and persistence flags so that callers can build queries and sorts without restating field names.

public sealed class LeanField<TDocument, TValue> : IFieldDescriptor

Type Parameters

TDocument

The mapped document model type.

TValue

The CLR value type for this field.

Inheritance
LeanField<TDocument, TValue>
Implements

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

Initialises a new LeanField<TDocument, TValue>.

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.

Public method ToString()

Returns the field name; convenience for query helpers.