OperationExecutor.UpdateDatabase Class

Definition

Represents an operation to update the database to a specified migration.

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

Constructors

OperationExecutor.UpdateDatabase(OperationExecutor, IOperationResultHandler, IDictionary)

Initializes a new instance of the OperationExecutor.UpdateDatabase class.

OperationExecutor.UpdateDatabase(OperationExecutor, Object, IDictionary)

Initializes a new instance of the OperationExecutor.UpdateDatabase class.

The arguments supported by args are:

targetMigration--The target Migration. If InitialDatabase, all migrations will be reverted. Defaults to the last 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