SharedDependentEntityEventData 构造函数

定义

构造事件有效负载。

public SharedDependentEntityEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Metadata.IEntityType firstEntityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType secondEntityType);
new Microsoft.EntityFrameworkCore.Diagnostics.SharedDependentEntityEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Diagnostics.SharedDependentEntityEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), firstEntityType As IEntityType, secondEntityType As IEntityType)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

firstEntityType
IEntityType

第一个 IEntityType

secondEntityType
IEntityType

第二个 IEntityType

适用于