예제 #1
0
 /// <summary> setups the sync logic for member _preQualificationQuestion</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncPreQualificationQuestion(IEntity2 relatedEntity)
 {
     if (_preQualificationQuestion != relatedEntity)
     {
         DesetupSyncPreQualificationQuestion(true, true);
         _preQualificationQuestion = (PreQualificationQuestionEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_preQualificationQuestion, new PropertyChangedEventHandler(OnPreQualificationQuestionPropertyChanged), "PreQualificationQuestion", PreQualificationTemplateQuestionEntity.Relations.PreQualificationQuestionEntityUsingQuestionId, true, new string[] {  });
     }
 }
예제 #2
0
 /// <summary> setups the sync logic for member _preQualificationQuestion_</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncPreQualificationQuestion_(IEntity2 relatedEntity)
 {
     if (_preQualificationQuestion_ != relatedEntity)
     {
         DesetupSyncPreQualificationQuestion_(true, true);
         _preQualificationQuestion_ = (PreQualificationQuestionEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_preQualificationQuestion_, new PropertyChangedEventHandler(OnPreQualificationQuestion_PropertyChanged), "PreQualificationQuestion_", PreQualificationQuestionRuleEntity.Relations.PreQualificationQuestionEntityUsingDependentQuestionId, true, new string[] {  });
     }
 }
예제 #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _preQualificationQuestion     = null;
            _preQualificationTestTemplate = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
예제 #4
0
        protected PreQualificationTemplateQuestionEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _preQualificationQuestion = (PreQualificationQuestionEntity)info.GetValue("_preQualificationQuestion", typeof(PreQualificationQuestionEntity));
                if (_preQualificationQuestion != null)
                {
                    _preQualificationQuestion.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _preQualificationTestTemplate = (PreQualificationTestTemplateEntity)info.GetValue("_preQualificationTestTemplate", typeof(PreQualificationTestTemplateEntity));
                if (_preQualificationTestTemplate != null)
                {
                    _preQualificationTestTemplate.AfterSave += new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
예제 #5
0
 /// <summary> Removes the sync logic for member _preQualificationQuestion</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 DesetupSyncPreQualificationQuestion(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_preQualificationQuestion, new PropertyChangedEventHandler(OnPreQualificationQuestionPropertyChanged), "PreQualificationQuestion", PreQualificationTemplateQuestionEntity.Relations.PreQualificationQuestionEntityUsingQuestionId, true, signalRelatedEntity, "PreQualificationTemplateQuestion", resetFKFields, new int[] { (int)PreQualificationTemplateQuestionFieldIndex.QuestionId });
     _preQualificationQuestion = null;
 }
예제 #6
0
 /// <summary> Removes the sync logic for member _preQualificationQuestion_</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 DesetupSyncPreQualificationQuestion_(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_preQualificationQuestion_, new PropertyChangedEventHandler(OnPreQualificationQuestion_PropertyChanged), "PreQualificationQuestion_", PreQualificationQuestionRuleEntity.Relations.PreQualificationQuestionEntityUsingDependentQuestionId, true, signalRelatedEntity, "PreQualificationQuestionRule_", resetFKFields, new int[] { (int)PreQualificationQuestionRuleFieldIndex.DependentQuestionId });
     _preQualificationQuestion_ = null;
 }