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