ForeignKeyCandidateEventData 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForeignKeyCandidateEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, String, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)
构造事件有效负载。
public ForeignKeyCandidateEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string dependentToPrincipalNavigationSpecification, string principalToDependentNavigationSpecification, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> firstPropertyCollection, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> secondPropertyCollection);
new Microsoft.EntityFrameworkCore.Diagnostics.ForeignKeyCandidateEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IPropertyBase> -> Microsoft.EntityFrameworkCore.Diagnostics.ForeignKeyCandidateEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), dependentToPrincipalNavigationSpecification As String, principalToDependentNavigationSpecification As String, firstPropertyCollection As IReadOnlyList(Of IPropertyBase), secondPropertyCollection As IReadOnlyList(Of IPropertyBase))
参数
- eventDefinition
- EventDefinitionBase
事件定义。
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
生成此事件的日志消息的委托。
- dependentToPrincipalNavigationSpecification
- String
关系依赖端上的导航属性或实体类型的名称。
- principalToDependentNavigationSpecification
- String
关系主体端的导航属性或实体类型的名称。
- firstPropertyCollection
- IReadOnlyList<IPropertyBase>
第一个属性集合。
- secondPropertyCollection
- IReadOnlyList<IPropertyBase>
第二个属性集合。
适用于
ForeignKeyCandidateEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, String, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)
构造事件有效负载。
public ForeignKeyCandidateEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string dependentToPrincipalNavigationSpecification, string principalToDependentNavigationSpecification, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> firstPropertyCollection, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> secondPropertyCollection);
new Microsoft.EntityFrameworkCore.Diagnostics.ForeignKeyCandidateEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> -> Microsoft.EntityFrameworkCore.Diagnostics.ForeignKeyCandidateEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), dependentToPrincipalNavigationSpecification As String, principalToDependentNavigationSpecification As String, firstPropertyCollection As IReadOnlyList(Of IReadOnlyPropertyBase), secondPropertyCollection As IReadOnlyList(Of IReadOnlyPropertyBase))
参数
- eventDefinition
- EventDefinitionBase
事件定义。
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
生成此事件的日志消息的委托。
- dependentToPrincipalNavigationSpecification
- String
关系依赖端上的导航属性或实体类型的名称。
- principalToDependentNavigationSpecification
- String
关系主体端的导航属性或实体类型的名称。
- firstPropertyCollection
- IReadOnlyList<IReadOnlyPropertyBase>
第一个属性集合。
- secondPropertyCollection
- IReadOnlyList<IReadOnlyPropertyBase>
第二个属性集合。