/// <summary> setups the sync logic for member _fluConsentQuestion</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncFluConsentQuestion(IEntity2 relatedEntity) { if (_fluConsentQuestion != relatedEntity) { DesetupSyncFluConsentQuestion(true, true); _fluConsentQuestion = (FluConsentQuestionEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_fluConsentQuestion, new PropertyChangedEventHandler(OnFluConsentQuestionPropertyChanged), "FluConsentQuestion", FluConsentTemplateQuestionEntity.Relations.FluConsentQuestionEntityUsingQuestionId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _fluConsentQuestion = null; _fluConsentTemplate = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected FluConsentTemplateQuestionEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _fluConsentQuestion = (FluConsentQuestionEntity)info.GetValue("_fluConsentQuestion", typeof(FluConsentQuestionEntity)); if (_fluConsentQuestion != null) { _fluConsentQuestion.AfterSave += new EventHandler(OnEntityAfterSave); } _fluConsentTemplate = (FluConsentTemplateEntity)info.GetValue("_fluConsentTemplate", typeof(FluConsentTemplateEntity)); if (_fluConsentTemplate != null) { _fluConsentTemplate.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _fluConsentQuestion</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 DesetupSyncFluConsentQuestion(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_fluConsentQuestion, new PropertyChangedEventHandler(OnFluConsentQuestionPropertyChanged), "FluConsentQuestion", FluConsentTemplateQuestionEntity.Relations.FluConsentQuestionEntityUsingQuestionId, true, signalRelatedEntity, "FluConsentTemplateQuestion", resetFKFields, new int[] { (int)FluConsentTemplateQuestionFieldIndex.QuestionId }); _fluConsentQuestion = null; }