Share via


IMigrationsCodeGenerator 介面

定義

用來產生移轉的程式碼。

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

備註

如需詳細資訊和範例,請參閱 資料庫移轉和 EF Core 設計階段服務

屬性

FileExtension

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

Language

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

(繼承來源 ILanguageBasedService)

方法

GenerateMetadata(String, Type, String, String, IModel)

產生移轉中繼資料程式碼。

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

產生移轉程式碼。

GenerateSnapshot(String, Type, String, IModel)

產生模型快照集程式碼。

適用於