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 }
/// <summary> setups the sync logic for member _afcampaign</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAfcampaign(IEntity2 relatedEntity) { if (_afcampaign != relatedEntity) { DesetupSyncAfcampaign(true, true); _afcampaign = (AfcampaignEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_afcampaign, new PropertyChangedEventHandler(OnAfcampaignPropertyChanged), "Afcampaign", AfcampaignSubAdvocateEntity.Relations.AfcampaignEntityUsingCampaignId, true, new string[] { }); } }
/// <summary> setups the sync logic for member _afcampaign</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAfcampaign(IEntity2 relatedEntity) { if (_afcampaign != relatedEntity) { DesetupSyncAfcampaign(true, true); _afcampaign = (AfcampaignEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_afcampaign, new PropertyChangedEventHandler(OnAfcampaignPropertyChanged), "Afcampaign", AfimpressionLogEntity.Relations.AfcampaignEntityUsingAffiliateCampaignMarketingMaterialId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _afcampaign = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected CustomCampaignContentEntity(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); } _afmarketingMaterial = (AfmarketingMaterialEntity)info.GetValue("_afmarketingMaterial", typeof(AfmarketingMaterialEntity)); if (_afmarketingMaterial != null) { _afmarketingMaterial.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 _afcampaign</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 DesetupSyncAfcampaign(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_afcampaign, new PropertyChangedEventHandler(OnAfcampaignPropertyChanged), "Afcampaign", AfcampaignSubAdvocateEntity.Relations.AfcampaignEntityUsingCampaignId, true, signalRelatedEntity, "AfcampaignSubAdvocate", resetFKFields, new int[] { (int)AfcampaignSubAdvocateFieldIndex.CampaignId }); _afcampaign = null; }
/// <summary> Removes the sync logic for member _afcampaign</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 DesetupSyncAfcampaign(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_afcampaign, new PropertyChangedEventHandler(OnAfcampaignPropertyChanged), "Afcampaign", AfimpressionLogEntity.Relations.AfcampaignEntityUsingAffiliateCampaignMarketingMaterialId, true, signalRelatedEntity, "AfimpressionLog", resetFKFields, new int[] { (int)AfimpressionLogFieldIndex.AffiliateCampaignMarketingMaterialId }); _afcampaign = null; }