Table of Contents

Class TwoPropertyBaseCollectionsEventData

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

A DiagnosticSource event payload class for events that have two property collections.

public class TwoPropertyBaseCollectionsEventData : EventData
Inheritance
TwoPropertyBaseCollectionsEventData
Derived
Inherited Members

Remarks

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

Constructors

TwoPropertyBaseCollectionsEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)

Constructs the event payload.

public TwoPropertyBaseCollectionsEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IReadOnlyList<IReadOnlyPropertyBase> firstPropertyCollection, IReadOnlyList<IReadOnlyPropertyBase> secondPropertyCollection)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

firstPropertyCollection IReadOnlyList<IReadOnlyPropertyBase>

The first property collection.

secondPropertyCollection IReadOnlyList<IReadOnlyPropertyBase>

The second property collection.

Properties

FirstPropertyCollection

The first property collection.

public virtual IReadOnlyList<IReadOnlyPropertyBase> FirstPropertyCollection { get; }

Property Value

IReadOnlyList<IReadOnlyPropertyBase>

SecondPropertyCollection

The second property collection.

public virtual IReadOnlyList<IReadOnlyPropertyBase> SecondPropertyCollection { get; }

Property Value

IReadOnlyList<IReadOnlyPropertyBase>