Class RelationalModel
- Namespace
- eQuantic.Core.Data.Relational
- Assembly
- eQuantic.Core.Data.Relational.dll
The registered relational mappings, keyed by entity type.
public sealed class RelationalModel
- Inheritance
-
RelationalModel
- Inherited Members
Properties
Configurations
The registered configurations.
public IReadOnlyDictionary<Type, RelationalEntityConfiguration> Configurations { get; }
Property Value
Methods
Explain(SqlDialect)
Describes every mapping decision the model made — what convention decided, what annotations and
fluent configuration declared — the way Explain() describes a query. The model never lies:
read this instead of guessing what a column ended up being called.
public string Explain(SqlDialect dialect)
Parameters
dialectSqlDialectThe dialect (for stored DDL types).
Returns
For(Type)
Gets the configuration for an entity type, or throws when it was not registered.
public RelationalEntityConfiguration For(Type entityType)
Parameters
entityTypeTypeThe entity type.