protected RecycleServiceChangeLogEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity)); if (_employee != null) { _employee.AfterSave += new EventHandler(OnEntityAfterSave); } _recycleService = (RecycleServiceEntity)info.GetValue("_recycleService", typeof(RecycleServiceEntity)); if (_recycleService != null) { _recycleService.AfterSave += new EventHandler(OnEntityAfterSave); } _user = (UserEntity)info.GetValue("_user", typeof(UserEntity)); if (_user != null) { _user.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _recycleService</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncRecycleService(IEntity2 relatedEntity) { if (_recycleService != relatedEntity) { DesetupSyncRecycleService(true, true); _recycleService = (RecycleServiceEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_recycleService, new PropertyChangedEventHandler(OnRecycleServicePropertyChanged), "RecycleService", RecycleServiceChangeLogEntity.Relations.RecycleServiceEntityUsingRecycleServiceId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _employee = null; _recycleService = null; _user = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Removes the sync logic for member _recycleService</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 DesetupSyncRecycleService(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_recycleService, new PropertyChangedEventHandler(OnRecycleServicePropertyChanged), "RecycleService", RecycleServiceChangeLogEntity.Relations.RecycleServiceEntityUsingRecycleServiceId, true, signalRelatedEntity, "RecycleServiceChangeLog", resetFKFields, new int[] { (int)RecycleServiceChangeLogFieldIndex.RecycleServiceId }); _recycleService = null; }