DbContext.Model Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Implements
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.Model
- Attributes
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework