Share via


DbMigrationsConfiguration.SetSqlGenerator 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

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

migrationSqlGenerator
MigrationSqlGenerator

The SQL generator to be used.

Applies to