MigrationSqlGenerator.Generate Method

Definition

Converts a set of migration operations into database provider specific SQL.

public abstract System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Sql.MigrationStatement> Generate (System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> migrationOperations, string providerManifestToken);
abstract member Generate : seq<System.Data.Entity.Migrations.Model.MigrationOperation> * string -> seq<System.Data.Entity.Migrations.Sql.MigrationStatement>
Public MustOverride Function Generate (migrationOperations As IEnumerable(Of MigrationOperation), providerManifestToken As String) As IEnumerable(Of MigrationStatement)

Parameters

migrationOperations
IEnumerable<MigrationOperation>

The operations to be converted.

providerManifestToken
String

Token representing the version of the database being targeted.

Returns

A list of SQL statements to be executed to perform the migration operations.

Applies to