Click or drag to resize

EntityCore<TFields>.EntityStaticMetaDataBase.AddNavigatorMetaData<TContaining, TRelated> Method (String, String, Action<TContaining, TRelated>, Func<TContaining, TRelated>, Action<TContaining, TRelated>, IEntityRelation, Func<IEntityRelation>,String[],Int32[], Func<TContaining, 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.7.0.0 (5.7.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: System.String
the name of the navigator the data is for
navigatorInRelatedEntity
Type: System.String
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: System.Action<TContaining, TRelated>
the func used to set the member variable of the navigator
memberGetterFunc
Type: System.Func<TContaining, TRelated>
the func used to obtain the value of the member variable of the navigator
propertySetterFunc
Type: System.Action<TContaining, TRelated>
the func used to set the property of the navigator
staticRelationship
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation
The static instance of the relationship this navigator is mapped on
relationshipCreatorFunc
Type: System.Func<IEntityRelation>
The func used to create a new relationship instance for this navigator
forfFieldNames
Type:System.String[]
The names of the forf fields or null if no forf fields are defined for this entity.
fkFieldIndices
Type:System.Int32[]
The field indices for the FK fields forming the relationship this navigator is mapped on
forfPropertyChangedHandlerFunc
Type: System.Func<TContaining, 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: System.Boolean
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: System.Int32
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