Click or drag to resize

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

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