語言

IMigrationsCodeGenerator 介面

定義

用來產生遷移程式碼。

public interface IMigrationsCodeGenerator : Microsoft.EntityFrameworkCore.Design.ILanguageBasedService
public interface IMigrationsCodeGenerator
type IMigrationsCodeGenerator = interface
    interface ILanguageBasedService
type IMigrationsCodeGenerator = interface
Public Interface IMigrationsCodeGenerator
Implements ILanguageBasedService
Public Interface IMigrationsCodeGenerator
衍生
實作

備註

更多資訊與範例請參閱 資料庫遷移及 EF Core 設計時服務 。

屬性

名稱 Description
FileExtension

取得檔案應該使用的副檔名代碼。

Language

取得此服務支援的程式語言。

(繼承來源 ILanguageBasedService)

方法

名稱 Description
GenerateMetadata(String, Type, String, String, IModel)

產生遷移的元資料程式碼。

GenerateMigration(String, String, IReadOnlyList<MigrationOperation>, IReadOnlyList<MigrationOperation>)

產生遷移程式碼。

GenerateSnapshot(String, Type, String, IModel, String)

產生模型快照程式碼。

GenerateSnapshot(String, Type, String, IModel)

產生模型快照程式碼。

適用於