Share via


OperationExecutor.UpdateDatabase Class

Definition

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

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