
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
TDocumentThe mapped document model type.
TValueThe CLR value type for this field.
- Inheritance
-
LeanField<TDocument, TValue>
- Implements
LeanField(string, FieldType, bool, bool, bool)
Initialises a new LeanField<TDocument, TValue>.
FieldType
The runtime FieldType emitted for this field.
IsIndexed
Whether the field is included in the inverted index.
IsRequired
Whether the field is required by the generated schema.
IsStored
Whether the field is persisted in stored fields.
Name
The field name used at indexing time.
ToString()
Returns the field name; convenience for query helpers.