MigratorBase 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為包裹核心的裝飾器設計的基底類別 DbMigrator
[System.Diagnostics.DebuggerStepThrough]
public abstract class MigratorBase
type MigratorBase = class
Public MustInherit Class MigratorBase
- 繼承
-
MigratorBase
- 衍生
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| MigratorBase(MigratorBase) |
初始化 MigratorBase 類別的新實例。 |
屬性
| 名稱 | Description |
|---|---|
| Configuration |
取得用於遷移流程的設定。 |
方法
| 名稱 | Description |
|---|---|
| GetDatabaseMigrations() |
會取得已套用到資料庫的遷移清單。 |
| GetLocalMigrations() |
會獲得 assembly 中定義的遷移清單。 |
| GetPendingMigrations() |
會取得尚未套用到資料庫的待處理遷移清單。 |
| Update() |
更新目標資料庫至最新遷移。 |
| Update(String) |
更新目標資料庫至特定遷移地點。 |