共用方式為


DefaultDbModelStore 類別

定義

將模型從 /儲存到指定位置的 .edmx 檔案中。

public class DefaultDbModelStore : System.Data.Entity.Infrastructure.DbModelStore
type DefaultDbModelStore = class
    inherit DbModelStore
Public Class DefaultDbModelStore
Inherits DbModelStore
繼承
DefaultDbModelStore

建構函式

DefaultDbModelStore(String)

初始化新的 DefaultDbModelStore 實例。

屬性

Directory

取得 .edmx 檔案的位置。

方法

FileIsValid(Type, String)

驗證模型存放區是否有效。 預設實作會確認上次寫入內容元件之後,上次寫入 .edmx 檔案。

GetDefaultSchema(Type)

取得模型使用的預設資料庫架構。

(繼承來源 DbModelStore)
GetFilePath(Type)

取得對應至指定內容類型的 .edmx 檔案路徑。

Save(Type, DbModel)

將模型儲存至存放區。

TryGetEdmx(Type)

從存放區擷取模型的 edmx XDocument 版本。

TryLoad(Type)

從存放區載入模型。

適用於