DbModel Class

Definition

Represents an Entity Data Model (EDM) created by the DbModelBuilder. The Compile method can be used to go from this EDM representation to a DbCompiledModel which is a compiled snapshot of the model suitable for caching and creation of DbContext or ObjectContext instances.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId="Db")]
public class DbModel : System.Data.Entity.Core.Metadata.Edm.IEdmModelAdapter
public class DbModel : System.Data.Entity.Core.Metadata.Edm.IEdmModelAdapter
type DbModel = class
    interface IEdmModelAdapter
Public Class DbModel
Implements IEdmModelAdapter
Inheritance
DbModel
Attributes
Implements

Properties

ConceptualModel

Gets the conceptual model.

ConceptualToStoreMapping

Gets the mapping model.

ProviderInfo

Gets the provider information.

ProviderManifest

Gets the provider manifest.

StoreModel

Gets the store model.

Methods

Compile()

Creates a DbCompiledModel for this mode which is a compiled snapshot suitable for caching and creation of DbContext instances.

Extension Methods

GetConceptualModel(IEdmModelAdapter)
Obsolete.

Gets the conceptual model from the specified DbModel.

GetStoreModel(IEdmModelAdapter)
Obsolete.

Gets the store model from the specified DbModel.

Applies to