Table of Contents

Class SkipCollectionChangedEventData

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.dll

A DiagnosticSource event payload class for events that indicate a skip collection navigation property has had entities added and/or removed.

public class SkipCollectionChangedEventData : SkipNavigationEventData, INavigationBaseEventData, ICollectionChangedEventData
Inheritance
SkipCollectionChangedEventData
Implements
Inherited Members

Remarks

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

Constructors

SkipCollectionChangedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, EntityEntry, ISkipNavigation, IEnumerable<object>, IEnumerable<object>)

Constructs the event payload.

public SkipCollectionChangedEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, EntityEntry entityEntry, ISkipNavigation navigation, IEnumerable<object> added, IEnumerable<object> removed)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

entityEntry EntityEntry

The entry for the entity instance on which the property value has changed.

navigation ISkipNavigation

The navigation property.

added IEnumerable<object>

The entities added to the collection.

removed IEnumerable<object>

The entities removed from the collection.

Properties

Added

The entities added to the collection.

public virtual IEnumerable<object> Added { get; }

Property Value

IEnumerable<object>

EntityEntry

The entry for the entity instance on which the navigation property has been added to or removed from.

public virtual EntityEntry EntityEntry { get; }

Property Value

EntityEntry

Navigation

The navigation.

public virtual ISkipNavigation Navigation { get; }

Property Value

ISkipNavigation

Removed

The entities removed from the collection.

public virtual IEnumerable<object> Removed { get; }

Property Value

IEnumerable<object>