다음을 통해 공유


KeyEventData 생성자

정의

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

public KeyEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
new Microsoft.EntityFrameworkCore.Diagnostics.KeyEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey -> Microsoft.EntityFrameworkCore.Diagnostics.KeyEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), key As IReadOnlyKey)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

key
IReadOnlyKey

키입니다.

적용 대상