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

'Declaration
Public Function GetSqlGenerator ( _
    providerInvariantName As String _
) As MigrationSqlGenerator
'Usage
Dim instance As DbMigrationsConfiguration 
Dim providerInvariantName As String 
Dim returnValue As MigrationSqlGenerator 

returnValue = instance.GetSqlGenerator(providerInvariantName)
public MigrationSqlGenerator GetSqlGenerator(
    string providerInvariantName
)
public:
MigrationSqlGenerator^ GetSqlGenerator(
    String^ providerInvariantName
)
member GetSqlGenerator : 
        providerInvariantName:string -> MigrationSqlGenerator
public function GetSqlGenerator(
    providerInvariantName : String
) : MigrationSqlGenerator

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