Section navigation

Public namespace Rowles.LeanCorpus.Mapping

Namespaces

Public namespace Rowles.LeanCorpus.Mapping.Attributes

Classes

Public class LeanDocumentMap<TDocument>

Abstract base produced by the LeanCorpus source generator for typed document mapping. Subclasses are emitted automatically from [LeanDocument]-decorated types and route to direct-construction code paths with no reflection.

Public class LeanFieldBinding<TDocument>

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

Public class LeanField<TDocument, TValue>

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 class LeanNumericEncoders

AOT-safe encoding and decoding helpers used by generated document mappers when projecting CLR temporal and decimal values to numeric or stored fields.

Structs

Public struct LeanGeoLocation

Canonical geo-point payload used by the LeanCorpus source generator when mapping properties annotated with [LeanGeoPoint]. Generated mappers project this type to a GeoPointField.

Public struct StoredDocument

Snapshot of stored-field data for a single document, as returned by GetStoredFields(int) and GetStoredBinaryFields(int).

Enums

Public enum LeanNumericEncoding

Selects the runtime encoding used to map a CLR value into a NumericField double payload.