Share via


DbMigrationsConfiguration.GetSqlGenerator Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets the SQL generator that is set to be used with a given database provider.

Namespace:  System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

public MigrationSqlGenerator GetSqlGenerator(
    string providerInvariantName
)

Parameters

  • providerInvariantName
    Type: System.String
    Name of the database provider to get the SQL generator for.

Return Value

Type: System.Data.Entity.Migrations.Sql.MigrationSqlGenerator
The SQL generator that is set for the database provider.

See Also

Reference

DbMigrationsConfiguration Class

System.Data.Entity.Migrations Namespace