Share via


LazyLoadingEventData Class

Definition

A DiagnosticSource event payload class for events from ILazyLoader

[System.Runtime.CompilerServices.Nullable(0)]
public class LazyLoadingEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
public class LazyLoadingEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type LazyLoadingEventData = class
    inherit DbContextEventData
type LazyLoadingEventData = class
    inherit DbContextEventData
Public Class LazyLoadingEventData
Inherits DbContextEventData
Inheritance
LazyLoadingEventData
Attributes

Remarks

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

Constructors

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

Constructs the event payload.

Properties

Name Description
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

Name Description
ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to