Udostępnij za pośrednictwem


IMigrationCommandExecutor.ExecuteNonQuery Method

Definition

Overloads

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.

ExecuteNonQuery(IEnumerable<MigrationCommand>, IRelationalConnection)

Source:
IMigrationCommandExecutor.cs
Source:
IMigrationCommandExecutor.cs
Source:
IMigrationCommandExecutor.cs

Executes the given commands using the given database connection.

public void ExecuteNonQuery (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> migrationCommands, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
abstract member ExecuteNonQuery : seq<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> unit
Public Sub ExecuteNonQuery (migrationCommands As IEnumerable(Of MigrationCommand), connection As IRelationalConnection)

Parameters

migrationCommands
IEnumerable<MigrationCommand>

The commands to execute.

connection
IRelationalConnection

The connection to use.

Applies to

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

Source:
IMigrationCommandExecutor.cs

Executes the given commands using the given database connection.

public int ExecuteNonQuery (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);
abstract member ExecuteNonQuery : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState * bool * Nullable<System.Data.IsolationLevel> -> int
Public Function ExecuteNonQuery (migrationCommands As IReadOnlyList(Of MigrationCommand), connection As IRelationalConnection, executionState As MigrationExecutionState, commitTransaction As Boolean, Optional isolationLevel As Nullable(Of IsolationLevel) = Nothing) As Integer

Parameters

migrationCommands
IReadOnlyList<MigrationCommand>

The commands to execute.

connection
IRelationalConnection

The connection to use.

executionState
MigrationExecutionState

The state of the current migration execution.

commitTransaction
Boolean

Indicates whether the transaction started by this call should be commited. If false, the transaction will be made available in executionState.

isolationLevel
Nullable<IsolationLevel>

The isolation level for the transaction.

Returns

Applies to