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 }
/// <summary> setups the sync logic for member _chargeCard</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncChargeCard(IEntity2 relatedEntity) { if (_chargeCard != relatedEntity) { DesetupSyncChargeCard(true, true); _chargeCard = (ChargeCardEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_chargeCard, new PropertyChangedEventHandler(OnChargeCardPropertyChanged), "ChargeCard", EventCustomerEligibilityEntity.Relations.ChargeCardEntityUsingChargeCardId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _chargeCard = null; _payment = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected ChargeCardPaymentEntity(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); } _payment = (PaymentEntity)info.GetValue("_payment", typeof(PaymentEntity)); if (_payment != null) { _payment.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 _chargeCard</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 DesetupSyncChargeCard(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_chargeCard, new PropertyChangedEventHandler(OnChargeCardPropertyChanged), "ChargeCard", EventCustomerEligibilityEntity.Relations.ChargeCardEntityUsingChargeCardId, true, signalRelatedEntity, "EventCustomerEligibility", resetFKFields, new int[] { (int)EventCustomerEligibilityFieldIndex.ChargeCardId }); _chargeCard = null; }