AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32) |
引发异常,指示命令影响意外的行数。 |
ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32) |
引发异常,指示命令影响意外的行数。 |
ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32)
引发异常,指示命令影响意外的行数。
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)
参数
- reader
- RelationalDataReader
数据读取器。
- commandIndex
- Int32
命令的序号。
- expectedRowsAffected
- Int32
受影响的预期行数。
- rowsAffected
- Int32
受影响的实际行数。
适用于
ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)
引发异常,指示命令影响意外的行数。
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)
参数
- commandIndex
- Int32
命令的序号。
- expectedRowsAffected
- Int32
受影响的预期行数。
- rowsAffected
- Int32
受影响的实际行数。