DbUpdateConcurrencyException 類別

定義

儲存至資料庫時發生並行違規時所擲回的例外狀況。 在儲存期間影響非預期的資料列數目時,就會發生並行違規。 這通常是因為資料庫中的資料自載入記憶體後已經過修改。

public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
[System.Serializable]
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
[<System.Serializable>]
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
繼承
DbUpdateConcurrencyException
屬性

備註

如需詳細資訊和範例 ,請參閱處理並行衝突

建構函式

DbUpdateConcurrencyException()

初始化 DbUpdateConcurrencyException 類別的新執行個體。

DbUpdateConcurrencyException(SerializationInfo, StreamingContext)
已淘汰.

從序列化表單初始化 類別的新實例 DbUpdateException

DbUpdateConcurrencyException(String)

初始化 DbUpdateConcurrencyException 類別的新執行個體。

DbUpdateConcurrencyException(String, Exception)

初始化 DbUpdateConcurrencyException 類別的新執行個體。

DbUpdateConcurrencyException(String, Exception, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateConcurrencyException 類別的新執行個體。

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

初始化 DbUpdateConcurrencyException 類別的新執行個體。

屬性

Entries

取得與錯誤相關的專案。 這通常是單一專案,但在某些情況下可能是零或多個專案。

(繼承來源 DbUpdateException)

適用於