DbMigrationsConfiguration.SetSqlGenerator 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.]
Adds a new SQL generator to be used for a given database provider.
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Sub SetSqlGenerator ( _
providerInvariantName As String, _
migrationSqlGenerator As MigrationSqlGenerator _
)
'Usage
Dim instance As DbMigrationsConfiguration
Dim providerInvariantName As String
Dim migrationSqlGenerator As MigrationSqlGenerator
instance.SetSqlGenerator(providerInvariantName, _
migrationSqlGenerator)
public void SetSqlGenerator(
string providerInvariantName,
MigrationSqlGenerator migrationSqlGenerator
)
public:
void SetSqlGenerator(
String^ providerInvariantName,
MigrationSqlGenerator^ migrationSqlGenerator
)
member SetSqlGenerator :
providerInvariantName:string *
migrationSqlGenerator:MigrationSqlGenerator -> unit
public function SetSqlGenerator(
providerInvariantName : String,
migrationSqlGenerator : MigrationSqlGenerator
)
Parameters
- providerInvariantName
Type: System.String
Name of the database provider to set the SQL generator for.
- migrationSqlGenerator
Type: System.Data.Entity.Migrations.Sql.MigrationSqlGenerator
The SQL generator to be used.