다음을 통해 공유


DbUpdateException 클래스

정의

데이터베이스에 DbContext 대한 변경 내용 저장이 실패할 때 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 DbUpdateException : System.Data.DataException
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public class DbUpdateException : System.Data.DataException
type DbUpdateException = class
    inherit DataException
Public Class DbUpdateException
Inherits DataException
상속
DbUpdateException
파생
특성

생성자

DbUpdateException()

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

DbUpdateException(String, Exception)

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

DbUpdateException(String)

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

속성

Entries

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

적용 대상