AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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
實際受影響的行數。