Click or drag to resize

EntityCoreTFieldsEntityStaticMetaDataBaseAddNavigatorMetaDataTContaining, TRelated Method (String, String, ActionTContaining, TRelated, FuncTContaining, TRelated, ActionTContaining, TRelated, IEntityRelation, FuncIEntityRelation, String, Int32, FuncTContaining, PropertyChangedEventHandler, Boolean, Int32)

Adds the meta-data for a single instance navigator to this meta-data container

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
protected void AddNavigatorMetaData<TContaining, TRelated>(
	string navigator,
	string navigatorInRelatedEntity,
	Action<TContaining, TRelated> memberSetterFunc,
	Func<TContaining, TRelated> memberGetterFunc,
	Action<TContaining, TRelated> propertySetterFunc,
	IEntityRelation staticRelationship,
	Func<IEntityRelation> relationshipCreatorFunc,
	string[] forfFieldNames,
	int[] fkFieldIndices,
	Func<TContaining, PropertyChangedEventHandler> forfPropertyChangedHandlerFunc,
	bool containingIsOnPkSide,
	int relatedEntityEnumTypeValue
)
where TContaining : IEntityCore
where TRelated : IEntityCore

Parameters

navigator
Type: SystemString
the name of the navigator the data is for
navigatorInRelatedEntity
Type: SystemString
The name of the navigator in the related entity mapped on the same relationship. Can be empty if the navigator doesn't exist
memberSetterFunc
Type: SystemActionTContaining, TRelated
the func used to set the member variable of the navigator
memberGetterFunc
Type: SystemFuncTContaining, TRelated
the func used to obtain the value of the member variable of the navigator
propertySetterFunc
Type: SystemActionTContaining, TRelated
the func used to set the property of the navigator
staticRelationship
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
The static instance of the relationship this navigator is mapped on
relationshipCreatorFunc
Type: SystemFuncIEntityRelation
The func used to create a new relationship instance for this navigator
forfFieldNames
Type: SystemString
The names of the forf fields or null if no forf fields are defined for this entity.
fkFieldIndices
Type: SystemInt32
The field indices for the FK fields forming the relationship this navigator is mapped on
forfPropertyChangedHandlerFunc
Type: SystemFuncTContaining, PropertyChangedEventHandler
The optional func (null otherwise) which produces the handler delegate for the function which calls OnPropertyChanged for a field mapped onto a related field if said related field has been changed
containingIsOnPkSide
Type: SystemBoolean
If true, the containing entity is on the PK side of the relationship. This value is true for m:1 relationships and false or true for 1:1 relationships
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
TRelated
The type of the class returned by the navigator
See Also