Click or drag to resize
EntityCoreTFieldsPerformDesetupSyncRelatedEntity Method
Performs the desetup of the sync info related to the relatedentity passed in

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntax
protected void PerformDesetupSyncRelatedEntity(
	IEntityCore relatedEntity,
	PropertyChangedEventHandler propertiesChangedHandler,
	string fieldName,
	IEntityRelation relation,
	bool disconnectFromSaveEvent,
	bool signalRelatedEntity,
	string fieldInRelatedEntity,
	bool resetFKFields,
	int[] fkFieldIndexes
)

Parameters

relatedEntity
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The related entity.
propertiesChangedHandler
Type: System.ComponentModelPropertyChangedEventHandler
The properties changed handler.
fieldName
Type: SystemString
Name of the field.
relation
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
The relation.
disconnectFromSaveEvent
Type: SystemBoolean
if set to true [disconnect from save event].
signalRelatedEntity
Type: SystemBoolean
if set to true, it will signal the related entity that it's been dereferenced by calling it's UnsetRelatedEntity method. If the relation is a m:1 relation, the related entity is told not to signal us back IF resetFKFields is false. This is a special case because the 1:n location is in a collection and by telling the related entity not to signal us back, the related entity will use a silent remove on the collection, otherwise the remove is done by the public Remove method which will always signal us back. THe resetFKFields flag signals that this call originates from a location where FK fields are written manually, and the signal back from the related entity will do that again, if performed, hence the special case.
fieldInRelatedEntity
Type: SystemString
The field in related entity.
resetFKFields
Type: SystemBoolean
if set to true [reset FK fields].
fkFieldIndexes
Type: SystemInt32
The fk field indexes.
See Also