Skip to main content

Module model_builder

Module model_builder 

Source
Expand description

Model builder — Fluent API for configuring entity types.

The ModelBuilder is the central configuration hub. It collects EntityTypeMeta from all registered entity types and entity configurations, and produces the final metadata model used by the migration engine and query builder.

Design note: builder structs (EntityTypeBuilder, PropertyBuilder, etc.) are pure-DSL configuration types and do NOT impose IEntityType bounds. Constraints live at the ModelBuilder entry points where entity_meta() is actually called.

Structs§

CollectionNavigationBuilder
EntityTypeBuilder
Fluent builder for configuring an entity type.
ModelBuilder
Central configuration point for the EF model. Corresponds to EFCore’s ModelBuilder.
PropertyBuilder
ReferenceNavigationBuilder

Traits§

IEntityTypeConfiguration
Interface for entity type configuration via the Fluent API.