EntityCoreTFieldsEntityStaticMetaDataBaseAddNavigatorMetaDataTContaining, TCollection Method (String, FuncTContaining, IEntityCollectionCore, ActionTContaining, TCollection, FuncTContaining, IEntityCollectionCore, FuncIEntityRelation, 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.7.0.0 (5.7.0)
Syntax protected void AddNavigatorMetaData<TContaining, TCollection>(
string navigator,
Func<TContaining, IEntityCollectionCore> memberGetterFunc,
Action<TContaining, TCollection> memberSetterFunc,
Func<TContaining, IEntityCollectionCore> propertyGetterFunc,
Func<IEntityRelation> relationshipCreatorFunc,
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),
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 - 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