SaveChangesInterceptor.ThrowingConcurrencyException 메서드

정의

EF가 를 throw하기 직전에 호출됩니다 DbUpdateConcurrencyException.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ThrowingConcurrencyException (Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
abstract member ThrowingConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
override this.ThrowingConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Overridable Function ThrowingConcurrencyException (eventData As ConcurrencyExceptionEventData, result As InterceptionResult) As InterceptionResult

매개 변수

eventData
ConcurrencyExceptionEventData

동시성 충돌에 대한 컨텍스트 정보입니다.

result
InterceptionResult

있는 경우 현재 결과를 나타냅니다. 이전의 일부 인터셉터에서 를 호출Suppress()하여 true 실행을 억제한 경우 이 값은 로 설정됩니다IsSuppressed. 이 값은 일반적으로이 메서드의 구현에 대 한 반환 값으로 사용 합니다.

반환

가 이falseIsSuppressed EF는 예외를 throw합니다. 가 이trueIsSuppressed EF는 예외를 throw하지 않습니다. 설정 속성 값을 표시하지 않으려고 하지 않는 인터셉터에 대해 이 메서드의 구현은 전달된 값을 반환 result 해야 합니다.

구현

적용 대상