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
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
entityEntry
EntityEntryThe entry for the entity instance on which the property value has changed.
navigation
ISkipNavigationThe 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
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
Navigation
The navigation.
public virtual ISkipNavigation Navigation { get; }
Property Value
Removed
The entities removed from the collection.
public virtual IEnumerable<object> Removed { get; }