OperationExecutor.ScriptMigration Class

Definition

Represents an operation to generate a SQL script from migrations.

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