/// <summary> setups the sync logic for member _ad</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAd(IEntityCore relatedEntity) { if (_ad != relatedEntity) { DesetupSyncAd(true, true); _ad = (AdEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_ad, new PropertyChangedEventHandler(OnAdPropertyChanged), "Ad", MonoSoftware.MonoX.DAL.RelationClasses.StaticAdPageRelations.AdEntityUsingAdIdStatic, true, new string[] { }); } }
protected AdPageEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _ad = (AdEntity)info.GetValue("_ad", typeof(AdEntity)); if (_ad != null) { _ad.AfterSave += new EventHandler(OnEntityAfterSave); } _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if (_language != null) { _language.AfterSave += new EventHandler(OnEntityAfterSave); } _page = (PageEntity)info.GetValue("_page", typeof(PageEntity)); if (_page != null) { _page.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _ad</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 DesetupSyncAd(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_ad, new PropertyChangedEventHandler(OnAdPropertyChanged), "Ad", MonoSoftware.MonoX.DAL.RelationClasses.StaticAdPageRelations.AdEntityUsingAdIdStatic, true, signalRelatedEntity, "AdPage", resetFKFields, new int[] { (int)AdPageFieldIndex.AdId }); _ad = null; }
/// <summary> setups the sync logic for member _ad</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAd(IEntityCore relatedEntity) { if(_ad!=relatedEntity) { DesetupSyncAd(true, true); _ad = (AdEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _ad, new PropertyChangedEventHandler( OnAdPropertyChanged ), "Ad", MonoSoftware.MonoX.DAL.RelationClasses.StaticAdPageRelations.AdEntityUsingAdIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _ad</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 DesetupSyncAd(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _ad, new PropertyChangedEventHandler( OnAdPropertyChanged ), "Ad", MonoSoftware.MonoX.DAL.RelationClasses.StaticAdPageRelations.AdEntityUsingAdIdStatic, true, signalRelatedEntity, "AdPage", resetFKFields, new int[] { (int)AdPageFieldIndex.AdId } ); _ad = null; }
protected AdPageEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _ad = (AdEntity)info.GetValue("_ad", typeof(AdEntity)); if(_ad!=null) { _ad.AfterSave+=new EventHandler(OnEntityAfterSave); } _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if(_language!=null) { _language.AfterSave+=new EventHandler(OnEntityAfterSave); } _page = (PageEntity)info.GetValue("_page", typeof(PageEntity)); if(_page!=null) { _page.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }