DbMigration.IDbMigration.AddOperation(MigrationOperation) Method

Definition

Adds a custom MigrationOperation to the migration. Custom operation implementors are encouraged to create extension methods on IDbMigration that provide a fluent-style API for adding new operations.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IDbMigration.AddOperation (System.Data.Entity.Migrations.Model.MigrationOperation migrationOperation);

Parameters

migrationOperation
MigrationOperation

The operation to add.

Implements

Attributes

Applies to