/// <summary> setups the sync logic for member _billingAccount</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncBillingAccount(IEntity2 relatedEntity)
 {
     if (_billingAccount != relatedEntity)
     {
         DesetupSyncBillingAccount(true, true);
         _billingAccount = (BillingAccountEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_billingAccount, new PropertyChangedEventHandler(OnBillingAccountPropertyChanged), "BillingAccount", CustomerBillingAccountEntity.Relations.BillingAccountEntityUsingBillingAccountId, true, new string[] {  });
     }
 }
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _billingAccount  = null;
            _customerProfile = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Example #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _claim = null;
            _eventCustomerEncounter = null;
            _eventCustomersCollectionViaEventCustomerEncounter = null;
            _insurancePaymentCollectionViaClaim = null;
            _billingAccount = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Example #4
0
        protected EncounterEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _claim = (EntityCollection <ClaimEntity>)info.GetValue("_claim", typeof(EntityCollection <ClaimEntity>));
                _eventCustomerEncounter = (EntityCollection <EventCustomerEncounterEntity>)info.GetValue("_eventCustomerEncounter", typeof(EntityCollection <EventCustomerEncounterEntity>));
                _eventCustomersCollectionViaEventCustomerEncounter = (EntityCollection <EventCustomersEntity>)info.GetValue("_eventCustomersCollectionViaEventCustomerEncounter", typeof(EntityCollection <EventCustomersEntity>));
                _insurancePaymentCollectionViaClaim = (EntityCollection <InsurancePaymentEntity>)info.GetValue("_insurancePaymentCollectionViaClaim", typeof(EntityCollection <InsurancePaymentEntity>));
                _billingAccount = (BillingAccountEntity)info.GetValue("_billingAccount", typeof(BillingAccountEntity));
                if (_billingAccount != null)
                {
                    _billingAccount.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
        protected CustomerBillingAccountEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _billingAccount = (BillingAccountEntity)info.GetValue("_billingAccount", typeof(BillingAccountEntity));
                if (_billingAccount != null)
                {
                    _billingAccount.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _customerProfile = (CustomerProfileEntity)info.GetValue("_customerProfile", typeof(CustomerProfileEntity));
                if (_customerProfile != null)
                {
                    _customerProfile.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 _billingAccount</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 DesetupSyncBillingAccount(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_billingAccount, new PropertyChangedEventHandler(OnBillingAccountPropertyChanged), "BillingAccount", CustomerBillingAccountEntity.Relations.BillingAccountEntityUsingBillingAccountId, true, signalRelatedEntity, "CustomerBillingAccount", resetFKFields, new int[] { (int)CustomerBillingAccountFieldIndex.BillingAccountId });
     _billingAccount = null;
 }