語言

MigrationCodeGenerator 類別

定義

基底類別用於產生程式碼遷移程式碼的提供者。

public abstract class MigrationCodeGenerator
type MigrationCodeGenerator = class
Public MustInherit Class MigrationCodeGenerator
繼承
MigrationCodeGenerator
衍生

建構函式

名稱 Description
MigrationCodeGenerator()

基底類別用於產生程式碼遷移程式碼的提供者。

屬性

名稱 Description
AnnotationGenerators

取得 AnnotationCodeGenerator 正在使用的實例。

方法

名稱 Description
Generate(String, IEnumerable<MigrationOperation>, String, String, String, String)

產生應該加入使用者專案的程式碼。

GetDefaultNamespaces(Boolean)

取得預設命名空間,必須輸出為「使用」或「匯入」指令,適用於任何產生的程式碼。

GetNamespaces(IEnumerable<MigrationOperation>)

取得必須輸出為「使用」或「匯入」指令的命名空間,以處理由指定操作產生的程式碼。

適用於