EntityCoreTFieldsEntityStaticMetaDataBaseAddNavigatorMetaDataTContaining, TCollection Method (String, FuncTContaining, IEntityCollectionCore, ActionTContaining, TCollection, FuncTContaining, IEntityCollectionCore, FuncIEntityRelation, FuncIEntityRelation, String, String, Type, Int32) |
Adds the meta-data for a multi-instance navigator to this meta-data container. This navigator is mapped onto a 1:n relationship. For m:n navigators, use the other overload.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax protected void AddNavigatorMetaData<TContaining, TCollection>(
string navigator,
Func<TContaining, IEntityCollectionCore> memberGetterFunc,
Action<TContaining, TCollection> memberSetterFunc,
Func<TContaining, IEntityCollectionCore> propertyGetterFunc,
Func<IEntityRelation> relationshipCreatorFunc,
Func<IEntityRelation> secondRelationshipCreatorFunc,
string aliasStartEntity,
string aliasIntermediateEntity,
Type typeOfRelatedEntity,
int relatedEntityEnumTypeValue
)
where TContaining : IEntityCore
Protected Sub AddNavigatorMetaData(Of TContaining As IEntityCore, TCollection) (
navigator As String,
memberGetterFunc As Func(Of TContaining, IEntityCollectionCore),
memberSetterFunc As Action(Of TContaining, TCollection),
propertyGetterFunc As Func(Of TContaining, IEntityCollectionCore),
relationshipCreatorFunc As Func(Of IEntityRelation),
secondRelationshipCreatorFunc As Func(Of IEntityRelation),
aliasStartEntity As String,
aliasIntermediateEntity As String,
typeOfRelatedEntity As Type,
relatedEntityEnumTypeValue As Integer
)
Parameters
- navigator
- Type: SystemString
the name of the navigator the data is for - memberGetterFunc
- Type: SystemFuncTContaining, IEntityCollectionCore
the func used to obtain the value of the member variable of the navigator - memberSetterFunc
- Type: SystemActionTContaining, TCollection
the func used to set the member variable of the navigator. - propertyGetterFunc
- Type: SystemFuncTContaining, IEntityCollectionCore
the func used to obtain the value from the property of the navigator - relationshipCreatorFunc
- Type: SystemFuncIEntityRelation
the func used to create a new relationship instance for this navigator - secondRelationshipCreatorFunc
- Type: SystemFuncIEntityRelation
The func used to create the second relationship instance for this navigator, the relationship from intermediate entity to related entity - aliasStartEntity
- Type: SystemString
The alias to use for the start entity in the 2 relationships which combined form the m:n relationship - aliasIntermediateEntity
- Type: SystemString
The alias to use for the intermediate entity in the 2 relationships which combined form the m:n relationship - typeOfRelatedEntity
- Type: SystemType
The type of the related entity of which this natigator returns a collection of - relatedEntityEnumTypeValue
- Type: SystemInt32
The EntityType enum value for the related entity this navigator represents
Type Parameters
- TContaining
- The type of the class the navigator is defined in
- TCollection
- The type of the collection this navigator represents
See Also