Inheritance: CommonEntityBase
コード例 #1
0
 /// <summary> setups the sync logic for member _snGroup</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncSnGroup(IEntityCore relatedEntity)
 {
     if(_snGroup!=relatedEntity)
     {
         DesetupSyncSnGroup(true, true);
         _snGroup = (SnGroupEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _snGroup, new PropertyChangedEventHandler( OnSnGroupPropertyChanged ), "SnGroup", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.SnGroupEntityUsingGroupIdStatic, true, new string[] {  } );
     }
 }
コード例 #2
0
 /// <summary> Removes the sync logic for member _snGroup</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 DesetupSyncSnGroup(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _snGroup, new PropertyChangedEventHandler( OnSnGroupPropertyChanged ), "SnGroup", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.SnGroupEntityUsingGroupIdStatic, true, signalRelatedEntity, "SnGroupRequests", resetFKFields, new int[] { (int)SnGroupRequestFieldIndex.GroupId } );
     _snGroup = null;
 }
コード例 #3
0
 protected SnGroupRequestEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity));
         if(_snGroup!=null)
         {
             _snGroup.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #4
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
 }
コード例 #5
0
 protected SnAlbumEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snEvents", typeof(EntityCollection<SnEventEntity>));
         _snFiles = (EntityCollection<SnFileEntity>)info.GetValue("_snFiles", typeof(EntityCollection<SnFileEntity>));
         _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if(_aspnetApplications!=null)
         {
             _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if(_language!=null)
         {
             _language.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity));
         if(_privacyLevel!=null)
         {
             _privacyLevel.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity));
         if(_snGroup!=null)
         {
             _snGroup.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #6
0
 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
 }