Beispiel #1
0
        protected EventCustomerEligibilityEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _chargeCard = (ChargeCardEntity)info.GetValue("_chargeCard", typeof(ChargeCardEntity));
                if (_chargeCard != null)
                {
                    _chargeCard.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _eligibility = (EligibilityEntity)info.GetValue("_eligibility", typeof(EligibilityEntity));
                if (_eligibility != null)
                {
                    _eligibility.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _eventCustomers = (EventCustomersEntity)info.GetValue("_eventCustomers", typeof(EventCustomersEntity));
                if (_eventCustomers != null)
                {
                    _eventCustomers.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Beispiel #2
0
 /// <summary> setups the sync logic for member _eligibility</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncEligibility(IEntity2 relatedEntity)
 {
     if (_eligibility != relatedEntity)
     {
         DesetupSyncEligibility(true, true);
         _eligibility = (EligibilityEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_eligibility, new PropertyChangedEventHandler(OnEligibilityPropertyChanged), "Eligibility", EventCustomerEligibilityEntity.Relations.EligibilityEntityUsingEligibilityId, true, new string[] {  });
     }
 }
Beispiel #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _chargeCard     = null;
            _eligibility    = null;
            _eventCustomers = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Beispiel #4
0
 /// <summary> Removes the sync logic for member _eligibility</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 DesetupSyncEligibility(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_eligibility, new PropertyChangedEventHandler(OnEligibilityPropertyChanged), "Eligibility", EventCustomerEligibilityEntity.Relations.EligibilityEntityUsingEligibilityId, true, signalRelatedEntity, "EventCustomerEligibility", resetFKFields, new int[] { (int)EventCustomerEligibilityFieldIndex.EligibilityId });
     _eligibility = null;
 }