DbMigrationsConfiguration.SetSqlGenerator(String, MigrationSqlGenerator) DbMigrationsConfiguration.SetSqlGenerator(String, MigrationSqlGenerator) Method

Definition

Adds a new SQL generator to be used for a given database provider.

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

Parameters

providerInvariantName
String String

Name of the database provider to set the SQL generator for.

migrationSqlGenerator
MigrationSqlGenerator MigrationSqlGenerator

The SQL generator to be used.

Applies to