다음을 통해 공유


DbUpdateConcurrencyException 클래스

정의

엔터티에 DbContext 대한 SaveChanges로 인해 데이터베이스 업데이트가 발생하지만 실제로 데이터베이스의 행이 영향을 받지 않을 것으로 예상될 때 예외가 throw되었습니다. 일반적으로 일치해야 하는 동시성 토큰이 실제로 일치하지 않도록 데이터베이스가 동시에 업데이트되었음을 나타냅니다. 이 예외에서 참조하는 상태 항목은 보안으로 인해 직렬화되지 않으며 serialization 후 상태 항목에 대한 액세스는 null을 반환합니다.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbUpdateConcurrencyException : System.Data.Entity.Infrastructure.DbUpdateException
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public class DbUpdateConcurrencyException : System.Data.Entity.Infrastructure.DbUpdateException
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
상속
DbUpdateConcurrencyException
특성

생성자

DbUpdateConcurrencyException()

DbUpdateException 클래스의 새 인스턴스를 초기화합니다.

DbUpdateConcurrencyException(String, Exception)

DbUpdateException 클래스의 새 인스턴스를 초기화합니다.

DbUpdateConcurrencyException(String)

DbUpdateException 클래스의 새 인스턴스를 초기화합니다.

속성

Entries

데이터베이스에 저장할 수 없는 엔터티를 나타내는 개체를 가져옵니다 DbEntityEntry .

(다음에서 상속됨 DbUpdateException)

적용 대상