語言

MigratorBase 類別

定義

為包裹核心的裝飾器設計的基底類別 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)

更新目標資料庫至特定遷移地點。

適用於