Ejemplo n.º 1
0
 /// <summary> setups the sync logic for member _fluConsentTemplate</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncFluConsentTemplate(IEntity2 relatedEntity)
 {
     if (_fluConsentTemplate != relatedEntity)
     {
         DesetupSyncFluConsentTemplate(true, true);
         _fluConsentTemplate = (FluConsentTemplateEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_fluConsentTemplate, new PropertyChangedEventHandler(OnFluConsentTemplatePropertyChanged), "FluConsentTemplate", EventFluConsentTemplateEntity.Relations.FluConsentTemplateEntityUsingTemplateId, true, new string[] {  });
     }
 }
Ejemplo n.º 2
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _events             = null;
            _fluConsentTemplate = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Ejemplo n.º 3
0
        protected EventFluConsentTemplateEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _events = (EventsEntity)info.GetValue("_events", typeof(EventsEntity));
                if (_events != null)
                {
                    _events.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
        }
Ejemplo n.º 4
0
 /// <summary> Removes the sync logic for member _fluConsentTemplate</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 DesetupSyncFluConsentTemplate(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_fluConsentTemplate, new PropertyChangedEventHandler(OnFluConsentTemplatePropertyChanged), "FluConsentTemplate", EventFluConsentTemplateEntity.Relations.FluConsentTemplateEntityUsingTemplateId, true, signalRelatedEntity, "EventFluConsentTemplate", resetFKFields, new int[] { (int)EventFluConsentTemplateFieldIndex.TemplateId });
     _fluConsentTemplate = null;
 }