Click or drag to resize

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.6.0.0 (5.6.19.0117)
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

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