語言

DbModel 類別

定義

代表由 DbModelBuilder建立的實體資料模型(EDM)。 編譯方法可從此 EDM 表示法轉換成 DbCompiledModel 適合快取及建立 DbContext 實 ObjectContext 例的編譯快照。

[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
繼承
DbModel
屬性
實作

屬性

名稱 Description
ConceptualModel

拿到概念模型。

ConceptualToStoreMapping

取得映射模型。

ProviderInfo

取得醫療提供者的資訊。

ProviderManifest

拿到醫療提供者的名單。

StoreModel

買了店裡的模型。

方法

名稱 Description
Compile()

為此模式建立 DbCompiledModel 一個編譯快照,適合快取與建立 DbContext 實例。

擴充方法

名稱 Description
GetConceptualModel(IEdmModelAdapter)
已淘汰.

從指定的資料庫模型取得概念模型。

GetStoreModel(IEdmModelAdapter)
已淘汰.

從指定的資料庫模型取得儲存模型。

適用於