OperationExecutor.AddMigration Class

Definition

Represents an operation to add a new migration.

public class OperationExecutor.AddMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase
type OperationExecutor.AddMigration = class
    inherit OperationExecutor.OperationBase
Public Class OperationExecutor.AddMigration
Inherits 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