DbMigrationsConfiguration.GetSqlGenerator(String) 方法

定义

获取设置为与给定数据库提供程序一起使用的 SQL 生成器。

public System.Data.Entity.Migrations.Sql.MigrationSqlGenerator GetSqlGenerator (string providerInvariantName);
member this.GetSqlGenerator : string -> System.Data.Entity.Migrations.Sql.MigrationSqlGenerator
Public Function GetSqlGenerator (providerInvariantName As String) As MigrationSqlGenerator

参数

providerInvariantName
String

要获取其 SQL 生成器的数据库提供程序的名称。

返回

为数据库提供程序设置的 SQL 生成器。

适用于