Inheritance: CommonEntityBase
コード例 #1
0
 /// <summary> Removes the sync logic for member _newsCategoryParent</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 DesetupSyncNewsCategoryParent(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _newsCategoryParent, new PropertyChangedEventHandler( OnNewsCategoryParentPropertyChanged ), "NewsCategoryParent", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryRelations.NewsCategoryEntityUsingIdNewsCategoryIdStatic, true, signalRelatedEntity, "NewsCategoryChildrens", resetFKFields, new int[] { (int)NewsCategoryFieldIndex.NewsCategoryId } );
     _newsCategoryParent = null;
 }
コード例 #2
0
 /// <summary> setups the sync logic for member _newsCategoryParent</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncNewsCategoryParent(IEntityCore relatedEntity)
 {
     if(_newsCategoryParent!=relatedEntity)
     {
         DesetupSyncNewsCategoryParent(true, true);
         _newsCategoryParent = (NewsCategoryEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _newsCategoryParent, new PropertyChangedEventHandler( OnNewsCategoryParentPropertyChanged ), "NewsCategoryParent", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryRelations.NewsCategoryEntityUsingIdNewsCategoryIdStatic, true, new string[] {  } );
     }
 }
コード例 #3
0
 protected NewsCategoryEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _newsCategoryChildrens = (EntityCollection<NewsCategoryEntity>)info.GetValue("_newsCategoryChildrens", typeof(EntityCollection<NewsCategoryEntity>));
         _newsCategoryInRoles = (EntityCollection<NewsCategoryInRoleEntity>)info.GetValue("_newsCategoryInRoles", typeof(EntityCollection<NewsCategoryInRoleEntity>));
         _newsCategoryLocalizations = (EntityCollection<NewsCategoryLocalizationEntity>)info.GetValue("_newsCategoryLocalizations", typeof(EntityCollection<NewsCategoryLocalizationEntity>));
         _newsItems = (EntityCollection<NewsItemEntity>)info.GetValue("_newsItems", typeof(EntityCollection<NewsItemEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if(_aspnetApplications!=null)
         {
             _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsCategoryParent = (NewsCategoryEntity)info.GetValue("_newsCategoryParent", typeof(NewsCategoryEntity));
         if(_newsCategoryParent!=null)
         {
             _newsCategoryParent.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsCategoryTemplate = (NewsCategoryTemplateEntity)info.GetValue("_newsCategoryTemplate", typeof(NewsCategoryTemplateEntity));
         if(_newsCategoryTemplate!=null)
         {
             _newsCategoryTemplate.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #4
0
 protected NewsCategoryInRoleEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetRole = (AspnetRolesEntity)info.GetValue("_aspnetRole", typeof(AspnetRolesEntity));
         if(_aspnetRole!=null)
         {
             _aspnetRole.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsCategory = (NewsCategoryEntity)info.GetValue("_newsCategory", typeof(NewsCategoryEntity));
         if(_newsCategory!=null)
         {
             _newsCategory.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #5
0
 /// <summary> Removes the sync logic for member _newsCategory</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 DesetupSyncNewsCategory(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _newsCategory, new PropertyChangedEventHandler( OnNewsCategoryPropertyChanged ), "NewsCategory", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnRelationshipRelations.NewsCategoryEntityUsingNewsCategoryIdStatic, true, signalRelatedEntity, "SnRelationshipss", resetFKFields, new int[] { (int)SnRelationshipFieldIndex.NewsCategoryId } );
     _newsCategory = null;
 }
コード例 #6
0
 protected SnRelationshipEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snComments = (EntityCollection<SnCommentEntity>)info.GetValue("_snComments", typeof(EntityCollection<SnCommentEntity>));
         _snFiles = (EntityCollection<SnFileEntity>)info.GetValue("_snFiles", typeof(EntityCollection<SnFileEntity>));
         _snRatings = (EntityCollection<SnRatingEntity>)info.GetValue("_snRatings", typeof(EntityCollection<SnRatingEntity>));
         _snSubscribers = (EntityCollection<SnSubscriberEntity>)info.GetValue("_snSubscribers", typeof(EntityCollection<SnSubscriberEntity>));
         _snTags = (EntityCollection<SnTagEntity>)info.GetValue("_snTags", typeof(EntityCollection<SnTagEntity>));
         _aspnetApplication = (AspnetApplicationsEntity)info.GetValue("_aspnetApplication", typeof(AspnetApplicationsEntity));
         if(_aspnetApplication!=null)
         {
             _aspnetApplication.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _blog = (BlogEntity)info.GetValue("_blog", typeof(BlogEntity));
         if(_blog!=null)
         {
             _blog.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity));
         if(_blogPost!=null)
         {
             _blogPost.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _calendarEvent = (CalendarEventEntity)info.GetValue("_calendarEvent", typeof(CalendarEventEntity));
         if(_calendarEvent!=null)
         {
             _calendarEvent.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _campaign = (CampaignEntity)info.GetValue("_campaign", typeof(CampaignEntity));
         if(_campaign!=null)
         {
             _campaign.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _document = (DocumentEntity)info.GetValue("_document", typeof(DocumentEntity));
         if(_document!=null)
         {
             _document.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _listItem = (ListItemEntity)info.GetValue("_listItem", typeof(ListItemEntity));
         if(_listItem!=null)
         {
             _listItem.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsCategory = (NewsCategoryEntity)info.GetValue("_newsCategory", typeof(NewsCategoryEntity));
         if(_newsCategory!=null)
         {
             _newsCategory.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsItem = (NewsItemEntity)info.GetValue("_newsItem", typeof(NewsItemEntity));
         if(_newsItem!=null)
         {
             _newsItem.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsletter = (NewsletterEntity)info.GetValue("_newsletter", typeof(NewsletterEntity));
         if(_newsletter!=null)
         {
             _newsletter.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _page = (PageEntity)info.GetValue("_page", typeof(PageEntity));
         if(_page!=null)
         {
             _page.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _poll = (PollEntity)info.GetValue("_poll", typeof(PollEntity));
         if(_poll!=null)
         {
             _poll.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snAlbum = (SnAlbumEntity)info.GetValue("_snAlbum", typeof(SnAlbumEntity));
         if(_snAlbum!=null)
         {
             _snAlbum.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snDiscussionBoard = (SnDiscussionBoardEntity)info.GetValue("_snDiscussionBoard", typeof(SnDiscussionBoardEntity));
         if(_snDiscussionBoard!=null)
         {
             _snDiscussionBoard.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snDiscussionMessage = (SnDiscussionMessageEntity)info.GetValue("_snDiscussionMessage", typeof(SnDiscussionMessageEntity));
         if(_snDiscussionMessage!=null)
         {
             _snDiscussionMessage.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snDiscussionTopic = (SnDiscussionTopicEntity)info.GetValue("_snDiscussionTopic", typeof(SnDiscussionTopicEntity));
         if(_snDiscussionTopic!=null)
         {
             _snDiscussionTopic.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snFile = (SnFileEntity)info.GetValue("_snFile", typeof(SnFileEntity));
         if(_snFile!=null)
         {
             _snFile.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity));
         if(_snGroup!=null)
         {
             _snGroup.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snMessage = (SnMessageEntity)info.GetValue("_snMessage", typeof(SnMessageEntity));
         if(_snMessage!=null)
         {
             _snMessage.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snNote = (SnNoteEntity)info.GetValue("_snNote", typeof(SnNoteEntity));
         if(_snNote!=null)
         {
             _snNote.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #7
0
 protected NewsItemEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _newsFiles = (EntityCollection<NewsFileEntity>)info.GetValue("_newsFiles", typeof(EntityCollection<NewsFileEntity>));
         _newsItemLocalizations = (EntityCollection<NewsItemLocalizationEntity>)info.GetValue("_newsItemLocalizations", typeof(EntityCollection<NewsItemLocalizationEntity>));
         _newsPublishQueues = (EntityCollection<NewsPublishQueueEntity>)info.GetValue("_newsPublishQueues", typeof(EntityCollection<NewsPublishQueueEntity>));
         _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _newsCategory = (NewsCategoryEntity)info.GetValue("_newsCategory", typeof(NewsCategoryEntity));
         if(_newsCategory!=null)
         {
             _newsCategory.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }