DbMigrationsConfiguration.SetSqlGenerator 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增一個新的 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 產生器。