Partager via


PropertyChangedEventData Constructeur

Définition

Construit la charge utile d’événement.

public PropertyChangedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entityEntry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, object oldValue, object newValue);
public PropertyChangedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entityEntry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, object? oldValue, object? newValue);
new Microsoft.EntityFrameworkCore.Diagnostics.PropertyChangedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * obj * obj -> Microsoft.EntityFrameworkCore.Diagnostics.PropertyChangedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), entityEntry As EntityEntry, property As IProperty, oldValue As Object, newValue As Object)

Paramètres

eventDefinition
EventDefinitionBase

Définition d’événement.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Délégué qui génère un message de journal pour cet événement.

entityEntry
EntityEntry

Entrée de l’entité instance sur laquelle la valeur de propriété a changé.

property
IProperty

Propriété.

oldValue
Object

Ancienne valeur.

newValue
Object

Nouvelle valeur.

S’applique à