Język

IMigrationCommandExecutor.ExecuteNonQueryAsync Metoda

Definicja

Przeciążenia

Nazwisko Opis
ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken)

Wykonuje podane polecenia przy użyciu danego połączenia z bazą danych.

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

Wykonuje podane polecenia przy użyciu danego połączenia z bazą danych.

ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken)

Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs

Wykonuje podane polecenia przy użyciu danego połączenia z bazą danych.

public System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> migrationCommands, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteNonQueryAsync : seq<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteNonQueryAsync (migrationCommands As IEnumerable(Of MigrationCommand), connection As IRelationalConnection, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametry

migrationCommands
IEnumerable<MigrationCommand>

Polecenia do wykonania.

connection
IRelationalConnection

Połączenie do użycia.

cancellationToken
CancellationToken

Element do CancellationToken obserwowania podczas oczekiwania na ukończenie zadania.

Zwraca

Zadanie reprezentujące operację asynchroniczną.

Wyjątki

Jeśli element CancellationToken zostanie anulowany.

Dotyczy

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

Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs
Źródło:
IMigrationCommandExecutor.cs

Wykonuje podane polecenia przy użyciu danego połączenia z bazą danych.

public System.Threading.Tasks.Task<int> ExecuteNonQueryAsync(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> migrationCommands, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState executionState, bool commitTransaction, System.Data.IsolationLevel? isolationLevel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteNonQueryAsync : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState * bool * Nullable<System.Data.IsolationLevel> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function ExecuteNonQueryAsync (migrationCommands As IReadOnlyList(Of MigrationCommand), connection As IRelationalConnection, executionState As MigrationExecutionState, commitTransaction As Boolean, Optional isolationLevel As Nullable(Of IsolationLevel) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parametry

migrationCommands
IReadOnlyList<MigrationCommand>

Polecenia do wykonania.

connection
IRelationalConnection

Połączenie do użycia.

executionState
MigrationExecutionState

Stan bieżącego wykonania migracji.

commitTransaction
Boolean

Wskazuje, czy transakcja rozpoczęta przez to wywołanie powinna zostać zatwierdzona. Jeśli falsetransakcja zostanie udostępniona w programie executionState.

isolationLevel
Nullable<IsolationLevel>

Poziom izolacji dla transakcji.

cancellationToken
CancellationToken

Element do CancellationToken obserwowania podczas oczekiwania na ukończenie zadania.

Zwraca

Zadanie reprezentujące operację asynchroniczną.

Wyjątki

Jeśli element CancellationToken zostanie anulowany.

Dotyczy