DbUpdateConcurrencyException 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
엔터티에 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() |
DbUpdateException 클래스의 새 인스턴스를 초기화합니다. |
DbUpdateConcurrencyException(String, Exception) |
DbUpdateException 클래스의 새 인스턴스를 초기화합니다. |
DbUpdateConcurrencyException(String) |
DbUpdateException 클래스의 새 인스턴스를 초기화합니다. |
속성
Entries |
데이터베이스에 저장할 수 없는 엔터티를 나타내는 개체를 가져옵니다 DbEntityEntry . (다음에서 상속됨 DbUpdateException) |
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework