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.

C#
protected virtual void ThrowAggregateUpdateConcurrencyException (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, int commandIndex, int expectedRowsAffected, int rowsAffected);

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

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 7.0, 8.0, 9.0

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.

C#
protected virtual void ThrowAggregateUpdateConcurrencyException (int commandIndex, int expectedRowsAffected, int rowsAffected);

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

Entity Framework Core 6.0 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0