다음을 통해 공유


LazyLoadingEventData 생성자

정의

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

public LazyLoadingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext context, object entity, string navigationPropertyName);
public LazyLoadingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext? context, object entity, string navigationPropertyName);
new Microsoft.EntityFrameworkCore.Diagnostics.LazyLoadingEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.DbContext * obj * string -> Microsoft.EntityFrameworkCore.Diagnostics.LazyLoadingEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), context As DbContext, entity As Object, navigationPropertyName As String)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

context
DbContext

현재 DbContext이거나 null 더 이상 사용할 수 없는 경우 입니다.

entity
Object

지연 로드가 시작된 엔터티 instance.

navigationPropertyName
String

로드할 관계의 탐색 속성 이름입니다.

적용 대상