TwoPropertyBaseCollectionsEventData Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
TwoPropertyBaseCollectionsEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)
Constructs the event payload.
public TwoPropertyBaseCollectionsEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> firstPropertyCollection, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> secondPropertyCollection);
new Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> -> Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), firstPropertyCollection As IReadOnlyList(Of IPropertyBase), secondPropertyCollection As IReadOnlyList(Of IPropertyBase))
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- firstPropertyCollection
- IReadOnlyList<IPropertyBase>
The first property collection.
- secondPropertyCollection
- IReadOnlyList<IPropertyBase>
The second property collection.
Applies to
Entity Framework Core 5.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 2.1, 2.2, 3.0, 3.1, 5.0 |
TwoPropertyBaseCollectionsEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)
Constructs the event payload.
public TwoPropertyBaseCollectionsEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> firstPropertyCollection, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> secondPropertyCollection);
new Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> -> Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), firstPropertyCollection As IReadOnlyList(Of IReadOnlyPropertyBase), secondPropertyCollection As IReadOnlyList(Of IReadOnlyPropertyBase))
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.
Applies to
Entity Framework Core 9.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: