Пример #1
0
        protected CurrentMedicationEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _customerProfile = (CustomerProfileEntity)info.GetValue("_customerProfile", typeof(CustomerProfileEntity));
                if (_customerProfile != null)
                {
                    _customerProfile.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _ndc = (NdcEntity)info.GetValue("_ndc", typeof(NdcEntity));
                if (_ndc != null)
                {
                    _ndc.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _organizationRoleUser = (OrganizationRoleUserEntity)info.GetValue("_organizationRoleUser", typeof(OrganizationRoleUserEntity));
                if (_organizationRoleUser != null)
                {
                    _organizationRoleUser.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Пример #2
0
 /// <summary> setups the sync logic for member _ndc</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncNdc(IEntity2 relatedEntity)
 {
     if (_ndc != relatedEntity)
     {
         DesetupSyncNdc(true, true);
         _ndc = (NdcEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_ndc, new PropertyChangedEventHandler(OnNdcPropertyChanged), "Ndc", EventCustomerCurrentMedicationEntity.Relations.NdcEntityUsingNdcId, true, new string[] {  });
     }
 }
Пример #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _eventCustomers = null;
            _ndc            = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Пример #4
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _customerProfile      = null;
            _ndc                  = null;
            _organizationRoleUser = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Пример #5
0
        protected EventCustomerCurrentMedicationEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _eventCustomers = (EventCustomersEntity)info.GetValue("_eventCustomers", typeof(EventCustomersEntity));
                if (_eventCustomers != null)
                {
                    _eventCustomers.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _ndc = (NdcEntity)info.GetValue("_ndc", typeof(NdcEntity));
                if (_ndc != null)
                {
                    _ndc.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Пример #6
0
 /// <summary> Removes the sync logic for member _ndc</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 DesetupSyncNdc(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_ndc, new PropertyChangedEventHandler(OnNdcPropertyChanged), "Ndc", EventCustomerCurrentMedicationEntity.Relations.NdcEntityUsingNdcId, true, signalRelatedEntity, "EventCustomerCurrentMedication", resetFKFields, new int[] { (int)EventCustomerCurrentMedicationFieldIndex.NdcId });
     _ndc = null;
 }