Share via


UpdateDatabaseOperation.AddMigration Method

Definition

Adds a migration to this update database operation.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

public void AddMigration (string migrationId, System.Collections.Generic.IList<System.Data.Entity.Migrations.Model.MigrationOperation> operations);
member this.AddMigration : string * System.Collections.Generic.IList<System.Data.Entity.Migrations.Model.MigrationOperation> -> unit
Public Sub AddMigration (migrationId As String, operations As IList(Of MigrationOperation))

Parameters

migrationId
String

The id of the migration.

operations
IList<MigrationOperation>

The individual operations applied by the migration.

Applies to