다음을 통해 공유


RelationalConcurrencyExceptionEventData 생성자

정의

이벤트 페이로드를 생성합니다.

public RelationalConcurrencyExceptionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext context, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Guid commandId, Guid connectionId, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries, Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException exception);
new Microsoft.EntityFrameworkCore.Diagnostics.RelationalConcurrencyExceptionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.DbContext * System.Data.Common.DbConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Guid * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException -> Microsoft.EntityFrameworkCore.Diagnostics.RelationalConcurrencyExceptionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), context As DbContext, connection As DbConnection, command As DbCommand, dataReader As DbDataReader, commandId As Guid, connectionId As Guid, entries As IReadOnlyList(Of IUpdateEntry), exception As DbUpdateConcurrencyException)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

이 이벤트에 대한 로그 메시지를 생성하는 대리자입니다.

context
DbContext

현재 DbContext입니다.

connection
DbConnection

DbConnection 사용 중인 입니다.

command
DbCommand

DbCommand 사용 중인 입니다.

dataReader
DbDataReader

DbDataReader 사용 중인 입니다.

commandId
Guid

사용 중인 instance 식별하는 DbCommand 상관 관계 ID입니다.

connectionId
Guid

사용 중인 instance 식별하는 DbConnection 상관 관계 ID입니다.

entries
IReadOnlyList<IUpdateEntry>

동시성 위반에 관련된 항목입니다.

exception
DbUpdateConcurrencyException

throw가 표시되지 않는 한 throw되는 예외입니다.

적용 대상