Share via


LazyLoadingEventData Class

Definition

A DiagnosticSource event payload class for events from ILazyLoader

public class LazyLoadingEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
type LazyLoadingEventData = class
    inherit DbContextEventData
Public Class LazyLoadingEventData
Inherits DbContextEventData
Inheritance
LazyLoadingEventData

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

LazyLoadingEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbContext, Object, String)

Constructs the event payload.

Properties

Context

The current DbContext.

(Inherited from DbContextEventData)
Entity

The entity instance on which lazy loading was initiated.

EventId

The EventId that defines the message ID and name.

(Inherited from EventData)
EventIdCode

A string representing the code where this event is defined.

(Inherited from EventData)
LogLevel

The LogLevel that would be used to log message for this event.

(Inherited from EventData)
NavigationPropertyName

The navigation property name of the relationship to be loaded.

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to