Table of Contents

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

IReadOnlyDictionary<Type, RelationalEntityConfiguration>

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

dialect SqlDialect

The dialect (for stored DDL types).

Returns

string

For(Type)

Gets the configuration for an entity type, or throws when it was not registered.

public RelationalEntityConfiguration For(Type entityType)

Parameters

entityType Type

The entity type.

Returns

RelationalEntityConfiguration