語言

DbUpdateConcurrencyException 類別

定義

一個例外,當儲存到資料庫時遇到並行違規時會拋出。 當存檔過程中影響到意外數量的列時,就發生了並行違規。 這通常是因為資料庫中的資料自載入記憶體後已被修改。

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

備註

更多資訊與範例請參見 處理並行衝突 。

建構函式

名稱 Description
DbUpdateConcurrencyException()

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

DbUpdateConcurrencyException(SerializationInfo, StreamingContext)
已淘汰.

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

DbUpdateConcurrencyException(String, Exception, IReadOnlyList<IUpdateEntry>)

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

DbUpdateConcurrencyException(String, Exception)

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

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

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

DbUpdateConcurrencyException(String)

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

屬性

名稱 Description
Entries

會取得與錯誤有關的條目。 通常這是單一條目,但在某些情況下可能是零條目或多條目。

(繼承來源 DbUpdateException)

適用於