Freigeben über


IMigrationCommandExecutor Interface

Definition

A service for executing migration commands against a database.

public interface IMigrationCommandExecutor
type IMigrationCommandExecutor = interface
Public Interface IMigrationCommandExecutor

Remarks

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

See Database migrations for more information and examples.

Methods

ExecuteNonQuery(IEnumerable<MigrationCommand>, IRelationalConnection)

Executes the given commands using the given database connection.

ExecuteNonQuery(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>)

Executes the given commands using the given database connection.

ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken)

Executes the given commands using the given database connection.

ExecuteNonQueryAsync(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>, CancellationToken)

Executes the given commands using the given database connection.

Applies to