DefaultDbModelStore 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定位置將模型載入或儲存到 .edmx 檔案。
public class DefaultDbModelStore : System.Data.Entity.Infrastructure.DbModelStore
type DefaultDbModelStore = class
inherit DbModelStore
Public Class DefaultDbModelStore
Inherits DbModelStore
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| DefaultDbModelStore(String) |
初始化一個新的 DefaultDbModelStore 實例。 |
屬性
| 名稱 | Description |
|---|---|
| Directory |
取得 .edmx 檔案的位置。 |
方法
| 名稱 | Description |
|---|---|
| FileIsValid(Type, String) |
驗證模型儲存的有效性。 預設實作會驗證 .edmx 檔案最後一次寫入是在上下文組合最後一次寫入之後。 |
| GetDefaultSchema(Type) |
取得模型使用的預設資料庫架構。 (繼承來源 DbModelStore) |
| GetFilePath(Type) |
取得對應特定情境類型的 .edmx 檔案路徑。 |
| Save(Type, DbModel) |
還能把模型存到商店。 |
| TryGetEdmx(Type) |
從商店取出 edmx XDocument 版本的模型。 |
| TryLoad(Type) |
從商店載入一個模型。 |