示例#1
0
 /// <summary> Removes the sync logic for member _activity</summary>
 /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
 /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
 private void DesetupSyncActivity(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_activity, new PropertyChangedEventHandler(OnActivityPropertyChanged), "Activity", NoteEntity.Relations.ActivityEntityUsingNoteId, true, signalRelatedEntity, "Note", false, new int[] { (int)NoteFieldIndex.NoteId });
     _activity = null;
 }
示例#2
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 public override RelationCollection GetRelationsForFieldOfType(string fieldName)
 {
     return(ActivityEntity.GetRelationsForField(fieldName));
 }
示例#3
0
 /// <summary> Removes the sync logic for member _activity</summary>
 /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
 /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
 private void DesetupSyncActivity(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_activity, new PropertyChangedEventHandler(OnActivityPropertyChanged), "Activity", OrgRoleUserActivityEntity.Relations.ActivityEntityUsingActivityId, true, signalRelatedEntity, "OrgRoleUserActivity", resetFKFields, new int[] { (int)OrgRoleUserActivityFieldIndex.ActivityId });
     _activity = null;
 }