OperationExecutor.AddMigration Class

Definition

Represents an operation to add a new migration.

C#
public class OperationExecutor.AddMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase
Inheritance
OperationExecutor.AddMigration
Inheritance
OperationExecutor.AddMigration

Constructors

OperationExecutor.AddMigration(OperationExecutor, IOperationResultHandler, IDictionary)

Initializes a new instance of the OperationExecutor.AddMigration class.

OperationExecutor.AddMigration(OperationExecutor, Object, IDictionary)

Initializes a new instance of the OperationExecutor.AddMigration class.

The arguments supported by args are:

name--The name of the migration.

outputDir--The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to "Migrations".

contextType--The DbContext type to use.

Methods

Execute(Action)

Executes an action passing exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)
Execute<T>(Func<IEnumerable<T>>)

Executes an action passing results or exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)
Execute<T>(Func<T>)

Executes an action passing the result or exceptions to the IOperationResultHandler.

(Inherited from OperationExecutor.OperationBase)

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0