/// <summary> setups the sync logic for member _snDiscussionBoard</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncSnDiscussionBoard(IEntityCore relatedEntity) { if (_snDiscussionBoard != relatedEntity) { DesetupSyncSnDiscussionBoard(true, true); _snDiscussionBoard = (SnDiscussionBoardEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_snDiscussionBoard, new PropertyChangedEventHandler(OnSnDiscussionBoardPropertyChanged), "SnDiscussionBoard", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardInRoleRelations.SnDiscussionBoardEntityUsingBoardIdStatic, true, new string[] { }); } }
protected SnDiscussionBoardInRoleEntity(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); } _snDiscussionBoard = (SnDiscussionBoardEntity)info.GetValue("_snDiscussionBoard", typeof(SnDiscussionBoardEntity)); if (_snDiscussionBoard != null) { _snDiscussionBoard.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _snDiscussionBoard</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncSnDiscussionBoard(IEntityCore relatedEntity) { if(_snDiscussionBoard!=relatedEntity) { DesetupSyncSnDiscussionBoard(true, true); _snDiscussionBoard = (SnDiscussionBoardEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _snDiscussionBoard, new PropertyChangedEventHandler( OnSnDiscussionBoardPropertyChanged ), "SnDiscussionBoard", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnRelationshipRelations.SnDiscussionBoardEntityUsingDiscussionBoardIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _snDiscussionBoard</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 DesetupSyncSnDiscussionBoard(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _snDiscussionBoard, new PropertyChangedEventHandler( OnSnDiscussionBoardPropertyChanged ), "SnDiscussionBoard", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnRelationshipRelations.SnDiscussionBoardEntityUsingDiscussionBoardIdStatic, true, signalRelatedEntity, "SnRelationships", resetFKFields, new int[] { (int)SnRelationshipFieldIndex.DiscussionBoardId } ); _snDiscussionBoard = null; }
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 }
protected SnDiscussionBoardInRoleEntity(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); } _snDiscussionBoard = (SnDiscussionBoardEntity)info.GetValue("_snDiscussionBoard", typeof(SnDiscussionBoardEntity)); if(_snDiscussionBoard!=null) { _snDiscussionBoard.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 _snDiscussionBoard</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 DesetupSyncSnDiscussionBoard(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_snDiscussionBoard, new PropertyChangedEventHandler(OnSnDiscussionBoardPropertyChanged), "SnDiscussionBoard", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardInRoleRelations.SnDiscussionBoardEntityUsingBoardIdStatic, true, signalRelatedEntity, "SnDiscussionBoardInRoles", resetFKFields, new int[] { (int)SnDiscussionBoardInRoleFieldIndex.BoardId }); _snDiscussionBoard = null; }
protected SnDiscussionTopicEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _snDiscussionMessages = (EntityCollection<SnDiscussionMessageEntity>)info.GetValue("_snDiscussionMessages", typeof(EntityCollection<SnDiscussionMessageEntity>)); _snEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snEvents", typeof(EntityCollection<SnEventEntity>)); _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>)); _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity)); if(_aspnetUser!=null) { _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave); } _pinnedByUser = (AspnetUsersEntity)info.GetValue("_pinnedByUser", typeof(AspnetUsersEntity)); if(_pinnedByUser!=null) { _pinnedByUser.AfterSave+=new EventHandler(OnEntityAfterSave); } _snDiscussionBoard = (SnDiscussionBoardEntity)info.GetValue("_snDiscussionBoard", typeof(SnDiscussionBoardEntity)); if(_snDiscussionBoard!=null) { _snDiscussionBoard.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected SnEventEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if(_aspnetUsers!=null) { _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _friendAspnetUsers = (AspnetUsersEntity)info.GetValue("_friendAspnetUsers", typeof(AspnetUsersEntity)); if(_friendAspnetUsers!=null) { _friendAspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _blogPost = (BlogPostEntity)info.GetValue("_blogPost", typeof(BlogPostEntity)); if(_blogPost!=null) { _blogPost.AfterSave+=new EventHandler(OnEntityAfterSave); } _oaConsumer = (OaConsumerEntity)info.GetValue("_oaConsumer", typeof(OaConsumerEntity)); if(_oaConsumer!=null) { _oaConsumer.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); } _snDiscussionTopic = (SnDiscussionTopicEntity)info.GetValue("_snDiscussionTopic", typeof(SnDiscussionTopicEntity)); if(_snDiscussionTopic!=null) { _snDiscussionTopic.AfterSave+=new EventHandler(OnEntityAfterSave); } _snEventType = (SnEventTypeEntity)info.GetValue("_snEventType", typeof(SnEventTypeEntity)); if(_snEventType!=null) { _snEventType.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); } _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 }