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 生成器。

适用于