Section navigation

Public classAbstract 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

TDocument

The mapped document model type.

Inheritance
LeanDocumentMap<TDocument>
Extension Methods

Public property DocumentName

The logical document name used in diagnostics and schema construction.

Public property Fields

The field bindings exposed by this map, in declaration order.

Public property StrictSchema

Whether the generated schema is built with StrictMode.

Public method CreateSchema()

Builds an IndexSchema from the generated field bindings using the map's configured StrictSchema default.

Public method CreateSchema(bool)

Builds an IndexSchema from the generated field bindings.

Public method FromStoredDocument(StoredDocument)

Materialises a typed model from a StoredDocument snapshot.

Public method ToDocument(TDocument)

Projects a typed model into a LeanDocument.