Beispiel #1
0
        protected ActivityEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _orgRoleUserActivity = (EntityCollection <OrgRoleUserActivityEntity>)info.GetValue("_orgRoleUserActivity", typeof(EntityCollection <OrgRoleUserActivityEntity>));
                _organizationRoleUserCollectionViaOrgRoleUserActivity = (EntityCollection <OrganizationRoleUserEntity>)info.GetValue("_organizationRoleUserCollectionViaOrgRoleUserActivity", typeof(EntityCollection <OrganizationRoleUserEntity>));

                _note = (NoteEntity)info.GetValue("_note", typeof(NoteEntity));
                if (_note != null)
                {
                    _note.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _task = (TaskEntity)info.GetValue("_task", typeof(TaskEntity));
                if (_task != null)
                {
                    _task.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Beispiel #2
0
 /// <summary> Removes the sync logic for member _task</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 DesetupSyncTask(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_task, new PropertyChangedEventHandler(OnTaskPropertyChanged), "Task", ActivityEntity.Relations.TaskEntityUsingTaskId, false, signalRelatedEntity, "Activity", false, new int[] { (int)ActivityFieldIndex.ActivityId });
     _task = null;
 }
Beispiel #3
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(TaskEntity.GetRelationsForField(fieldName));
 }