DbContext.Model Property

Definition

The metadata about the shape of entities, the relationships between them, and how they map to the database. May not include all the information necessary to initialize the database.

public virtual Microsoft.EntityFrameworkCore.Metadata.IModel Model { get; }
public virtual Microsoft.EntityFrameworkCore.Metadata.IModel Model { [System.Diagnostics.DebuggerStepThrough] get; }
member this.Model : Microsoft.EntityFrameworkCore.Metadata.IModel
[<get: System.Diagnostics.DebuggerStepThrough>]
member this.Model : Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable ReadOnly Property Model As IModel

Property Value

IModel

Implements

Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.Model
Attributes

Remarks

See Modeling entity types and relationships for more information.

Applies to