
LeanDocumentMap<TDocument>
- Namespace
- Rowles.LeanCorpus.Mapping
- Assembly
- Rowles.LeanCorpus.dll
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 abstract class LeanDocumentMap<TDocument>
Type Parameters
TDocumentThe mapped document model type.
- Inheritance
-
LeanDocumentMap<TDocument>
- Extension Methods
DocumentName
The logical document name used in diagnostics and schema construction.
Fields
The field bindings exposed by this map, in declaration order.
StrictSchema
Whether the generated schema is built with StrictMode.
CreateSchema()
Builds an IndexSchema from the generated field bindings using the map's configured StrictSchema default.
CreateSchema(bool)
Builds an IndexSchema from the generated field bindings.
FromStoredDocument(StoredDocument)
Materialises a typed model from a StoredDocument snapshot.
ToDocument(TDocument)
Projects a typed model into a LeanDocument.