Esempio n. 1
0
        protected AfcampaignSubAdvocateEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _afcampaign = (AfcampaignEntity)info.GetValue("_afcampaign", typeof(AfcampaignEntity));
                if (_afcampaign != null)
                {
                    _afcampaign.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _affiliateProfile = (AffiliateProfileEntity)info.GetValue("_affiliateProfile", typeof(AffiliateProfileEntity));
                if (_affiliateProfile != null)
                {
                    _affiliateProfile.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _affiliateProfile_ = (AffiliateProfileEntity)info.GetValue("_affiliateProfile_", typeof(AffiliateProfileEntity));
                if (_affiliateProfile_ != null)
                {
                    _affiliateProfile_.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Esempio n. 2
0
 /// <summary> setups the sync logic for member _affiliateProfile</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAffiliateProfile(IEntity2 relatedEntity)
 {
     if (_affiliateProfile != relatedEntity)
     {
         DesetupSyncAffiliateProfile(true, true);
         _affiliateProfile = (AffiliateProfileEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_affiliateProfile, new PropertyChangedEventHandler(OnAffiliateProfilePropertyChanged), "AffiliateProfile", AflAffiliatePaymentMethodEntity.Relations.AffiliateProfileEntityUsingAffiliateId, true, new string[] {  });
     }
 }
Esempio n. 3
0
 /// <summary> setups the sync logic for member _affiliateProfile_</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAffiliateProfile_(IEntity2 relatedEntity)
 {
     if (_affiliateProfile_ != relatedEntity)
     {
         DesetupSyncAffiliateProfile_(true, true);
         _affiliateProfile_ = (AffiliateProfileEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_affiliateProfile_, new PropertyChangedEventHandler(OnAffiliateProfile_PropertyChanged), "AffiliateProfile_", AfcampaignSubAdvocateEntity.Relations.AffiliateProfileEntityUsingCampaignSubAffiliateId, true, new string[] {  });
     }
 }
Esempio n. 4
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _afcampaign        = null;
            _affiliateProfile  = null;
            _affiliateProfile_ = null;
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Esempio n. 5
0
        protected AflAffiliatePaymentMethodEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _afmanualCheck = (EntityCollection <AfmanualCheckEntity>)info.GetValue("_afmanualCheck", typeof(EntityCollection <AfmanualCheckEntity>));
                _afpaypal      = (EntityCollection <AfpaypalEntity>)info.GetValue("_afpaypal", typeof(EntityCollection <AfpaypalEntity>));

                _affiliateProfile = (AffiliateProfileEntity)info.GetValue("_affiliateProfile", typeof(AffiliateProfileEntity));
                if (_affiliateProfile != null)
                {
                    _affiliateProfile.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Esempio n. 6
0
 /// <summary> Removes the sync logic for member _affiliateProfile</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 DesetupSyncAffiliateProfile(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_affiliateProfile, new PropertyChangedEventHandler(OnAffiliateProfilePropertyChanged), "AffiliateProfile", AflAffiliatePaymentMethodEntity.Relations.AffiliateProfileEntityUsingAffiliateId, true, signalRelatedEntity, "AflAffiliatePaymentMethod", resetFKFields, new int[] { (int)AflAffiliatePaymentMethodFieldIndex.AffiliateId });
     _affiliateProfile = null;
 }
Esempio n. 7
0
 /// <summary> Removes the sync logic for member _affiliateProfile_</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 DesetupSyncAffiliateProfile_(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_affiliateProfile_, new PropertyChangedEventHandler(OnAffiliateProfile_PropertyChanged), "AffiliateProfile_", AfcampaignSubAdvocateEntity.Relations.AffiliateProfileEntityUsingCampaignSubAffiliateId, true, signalRelatedEntity, "AfcampaignSubAdvocate_", false, new int[] { (int)AfcampaignSubAdvocateFieldIndex.CampaignSubAffiliateId });
     _affiliateProfile_ = null;
 }