Ejemplo n.º 1
0
 /// <summary> setups the sync logic for member _paymentDetails</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncPaymentDetails(IEntity2 relatedEntity)
 {
     if (_paymentDetails != relatedEntity)
     {
         DesetupSyncPaymentDetails(true, true);
         _paymentDetails = (PaymentDetailsEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_paymentDetails, new PropertyChangedEventHandler(OnPaymentDetailsPropertyChanged), "PaymentDetails", CashPaymentDetailsEntity.Relations.PaymentDetailsEntityUsingPaymentId, true, new string[] {  });
     }
 }
Ejemplo n.º 2
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _paymentDetails = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Ejemplo n.º 3
0
        protected CashPaymentDetailsEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _paymentDetails = (PaymentDetailsEntity)info.GetValue("_paymentDetails", typeof(PaymentDetailsEntity));
                if (_paymentDetails != null)
                {
                    _paymentDetails.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 _paymentDetails</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 DesetupSyncPaymentDetails(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_paymentDetails, new PropertyChangedEventHandler(OnPaymentDetailsPropertyChanged), "PaymentDetails", CashPaymentDetailsEntity.Relations.PaymentDetailsEntityUsingPaymentId, true, signalRelatedEntity, "CashPaymentDetails", resetFKFields, new int[] { (int)CashPaymentDetailsFieldIndex.PaymentId });
     _paymentDetails = null;
 }