protected SystemGeneratedCallQueueAssignmentEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _callQueue = (CallQueueEntity)info.GetValue("_callQueue", typeof(CallQueueEntity)); if (_callQueue != null) { _callQueue.AfterSave += new EventHandler(OnEntityAfterSave); } _callQueueCustomer = (CallQueueCustomerEntity)info.GetValue("_callQueueCustomer", typeof(CallQueueCustomerEntity)); if (_callQueueCustomer != null) { _callQueueCustomer.AfterSave += new EventHandler(OnEntityAfterSave); } _systemGeneratedCallQueueCriteria = (SystemGeneratedCallQueueCriteriaEntity)info.GetValue("_systemGeneratedCallQueueCriteria", typeof(SystemGeneratedCallQueueCriteriaEntity)); if (_systemGeneratedCallQueueCriteria != null) { _systemGeneratedCallQueueCriteria.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 _systemGeneratedCallQueueCriteria</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncSystemGeneratedCallQueueCriteria(IEntity2 relatedEntity) { if (_systemGeneratedCallQueueCriteria != relatedEntity) { DesetupSyncSystemGeneratedCallQueueCriteria(true, true); _systemGeneratedCallQueueCriteria = (SystemGeneratedCallQueueCriteriaEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_systemGeneratedCallQueueCriteria, new PropertyChangedEventHandler(OnSystemGeneratedCallQueueCriteriaPropertyChanged), "SystemGeneratedCallQueueCriteria", SystemGeneratedCallQueueAssignmentEntity.Relations.SystemGeneratedCallQueueCriteriaEntityUsingCriteriaId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _callQueue = null; _callQueueCustomer = null; _systemGeneratedCallQueueCriteria = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Removes the sync logic for member _systemGeneratedCallQueueCriteria</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 DesetupSyncSystemGeneratedCallQueueCriteria(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_systemGeneratedCallQueueCriteria, new PropertyChangedEventHandler(OnSystemGeneratedCallQueueCriteriaPropertyChanged), "SystemGeneratedCallQueueCriteria", SystemGeneratedCallQueueAssignmentEntity.Relations.SystemGeneratedCallQueueCriteriaEntityUsingCriteriaId, true, signalRelatedEntity, "SystemGeneratedCallQueueAssignment", resetFKFields, new int[] { (int)SystemGeneratedCallQueueAssignmentFieldIndex.CriteriaId }); _systemGeneratedCallQueueCriteria = null; }