/// <summary> setups the sync logic for member _blogCategory</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncBlogCategory(IEntityCore relatedEntity) { if (_blogCategory != relatedEntity) { DesetupSyncBlogCategory(true, true); _blogCategory = (BlogCategoryEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_blogCategory, new PropertyChangedEventHandler(OnBlogCategoryPropertyChanged), "BlogCategory", MonoSoftware.MonoX.DAL.RelationClasses.StaticBlogPostCategoryRelations.BlogCategoryEntityUsingBlogCategoryIdStatic, true, new string[] { }); } }
protected BlogPostCategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _blogCategory = (BlogCategoryEntity)info.GetValue("_blogCategory", typeof(BlogCategoryEntity)); if (_blogCategory != null) { _blogCategory.AfterSave += new EventHandler(OnEntityAfterSave); } _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity)); if (_blogPost != null) { _blogPost.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 _blogCategory</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 DesetupSyncBlogCategory(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_blogCategory, new PropertyChangedEventHandler(OnBlogCategoryPropertyChanged), "BlogCategory", MonoSoftware.MonoX.DAL.RelationClasses.StaticBlogPostCategoryRelations.BlogCategoryEntityUsingBlogCategoryIdStatic, true, signalRelatedEntity, "BlogPostCategory", resetFKFields, new int[] { (int)BlogPostCategoryFieldIndex.BlogCategoryId }); _blogCategory = null; }
/// <summary> setups the sync logic for member _blogCategory</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncBlogCategory(IEntityCore relatedEntity) { if(_blogCategory!=relatedEntity) { DesetupSyncBlogCategory(true, true); _blogCategory = (BlogCategoryEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _blogCategory, new PropertyChangedEventHandler( OnBlogCategoryPropertyChanged ), "BlogCategory", MonoSoftware.MonoX.DAL.RelationClasses.StaticBlogPostCategoryRelations.BlogCategoryEntityUsingBlogCategoryIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _blogCategory</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 DesetupSyncBlogCategory(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _blogCategory, new PropertyChangedEventHandler( OnBlogCategoryPropertyChanged ), "BlogCategory", MonoSoftware.MonoX.DAL.RelationClasses.StaticBlogPostCategoryRelations.BlogCategoryEntityUsingBlogCategoryIdStatic, true, signalRelatedEntity, "BlogPostCategory", resetFKFields, new int[] { (int)BlogPostCategoryFieldIndex.BlogCategoryId } ); _blogCategory = null; }
protected BlogPostCategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _blogCategory = (BlogCategoryEntity)info.GetValue("_blogCategory", typeof(BlogCategoryEntity)); if(_blogCategory!=null) { _blogCategory.AfterSave+=new EventHandler(OnEntityAfterSave); } _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity)); if(_blogPost!=null) { _blogPost.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }