OperationExecutor.ScriptMigration Class

Definition

Represents an operation to generate a SQL script from migrations.

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

Constructors

OperationExecutor.ScriptMigration(OperationExecutor, IOperationResultHandler, IDictionary)

Initializes a new instance of the OperationExecutor.ScriptMigration class.

OperationExecutor.ScriptMigration(OperationExecutor, Object, IDictionary)

Initializes a new instance of the OperationExecutor.ScriptMigration class.

The arguments supported by args are:

fromMigration--The starting migration. Defaults to InitialDatabase.

toMigration--The ending migration. Defaults to the last migration.

idempotent--Generate a script that can be used on a database at any migration.

contextType--The DbContext 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