Share via


AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException Method

Definition

Overloads

ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32)

Throws an exception indicating the command affected an unexpected number of rows.

ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)

Throws an exception indicating the command affected an unexpected number of rows.

ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32)

Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs

Throws an exception indicating the command affected an unexpected number of rows.

protected virtual void ThrowAggregateUpdateConcurrencyException (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, int commandIndex, int expectedRowsAffected, int rowsAffected);
abstract member ThrowAggregateUpdateConcurrencyException : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * int * int * int -> unit
override this.ThrowAggregateUpdateConcurrencyException : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * int * int * int -> unit
Protected Overridable Sub ThrowAggregateUpdateConcurrencyException (reader As RelationalDataReader, commandIndex As Integer, expectedRowsAffected As Integer, rowsAffected As Integer)

Parameters

reader
RelationalDataReader

The data reader.

commandIndex
Int32

The ordinal of the command.

expectedRowsAffected
Int32

The expected number of rows affected.

rowsAffected
Int32

The actual number of rows affected.

Applies to

ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)

Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs
Source:
AffectedCountModificationCommandBatch.cs

Throws an exception indicating the command affected an unexpected number of rows.

protected virtual void ThrowAggregateUpdateConcurrencyException (int commandIndex, int expectedRowsAffected, int rowsAffected);
abstract member ThrowAggregateUpdateConcurrencyException : int * int * int -> unit
override this.ThrowAggregateUpdateConcurrencyException : int * int * int -> unit
Protected Overridable Sub ThrowAggregateUpdateConcurrencyException (commandIndex As Integer, expectedRowsAffected As Integer, rowsAffected As Integer)

Parameters

commandIndex
Int32

The ordinal of the command.

expectedRowsAffected
Int32

The expected number of rows affected.

rowsAffected
Int32

The actual number of rows affected.

Applies to