語言

DbMigrationsConfiguration.SetSqlGenerator 方法

定義

新增一個新的 SQL 產生器,用於特定的資料庫提供者。

public void SetSqlGenerator(string providerInvariantName, System.Data.Entity.Migrations.Sql.MigrationSqlGenerator migrationSqlGenerator);
member this.SetSqlGenerator : string * System.Data.Entity.Migrations.Sql.MigrationSqlGenerator -> unit

參數

providerInvariantName
String

設定 SQL 產生器的資料庫提供者名稱。

migrationSqlGenerator
MigrationSqlGenerator

要用的 SQL 產生器。

適用於