Share via


OperationExecutor.UpdateDatabase Constructors

Definition

Overloads

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.

OperationExecutor.UpdateDatabase(OperationExecutor, IOperationResultHandler, IDictionary)

Source:
OperationExecutor.cs
Source:
OperationExecutor.cs
Source:
OperationExecutor.cs
Source:
OperationExecutor.cs
Source:
OperationExecutor.cs
Source:
OperationExecutor.cs
Source:
OperationExecutor.cs

Initializes a new instance of the OperationExecutor.UpdateDatabase class.

public UpdateDatabase (Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, Microsoft.EntityFrameworkCore.Design.IOperationResultHandler resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase : Microsoft.EntityFrameworkCore.Design.OperationExecutor * Microsoft.EntityFrameworkCore.Design.IOperationResultHandler * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase
Public Sub New (executor As OperationExecutor, resultHandler As IOperationResultHandler, args As IDictionary)

Parameters

executor
OperationExecutor

The operation executor.

args
IDictionary

The operation arguments.

Remarks

The arguments supported by args are:

targetMigration--The target Migration. If InitialDatabase, all migrations will be reverted. Defaults to the last migration.

connectionString--The connection string to the database. Defaults to the one specified in Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.AddDbContext or OnConfiguring(DbContextOptionsBuilder).

contextType--The DbContext to use.

Applies to

OperationExecutor.UpdateDatabase(OperationExecutor, Object, IDictionary)

Source:
OperationExecutor.cs
Source:
OperationExecutor.cs

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.

public UpdateDatabase (Microsoft.EntityFrameworkCore.Design.OperationExecutor executor, object resultHandler, System.Collections.IDictionary args);
new Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase : Microsoft.EntityFrameworkCore.Design.OperationExecutor * obj * System.Collections.IDictionary -> Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase
Public Sub New (executor As OperationExecutor, resultHandler As Object, args As IDictionary)

Parameters

executor
OperationExecutor

The operation executor.

resultHandler
Object

The IOperationResultHandler.

args
IDictionary

The operation arguments.

Applies to