/// <summary> setups the sync logic for member _aspnetApplications</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetApplications(IEntityCore relatedEntity)
 {
     if (_aspnetApplications != relatedEntity)
     {
         DesetupSyncAspnetApplications(true, true);
         _aspnetApplications = (AspnetApplicationsEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_aspnetApplications, new PropertyChangedEventHandler(OnAspnetApplicationsPropertyChanged), "AspnetApplications", MonoSoftware.MonoX.DAL.RelationClasses.StaticCampaignRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, new string[] {  });
     }
 }
 protected CampaignEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _ad = (EntityCollection <AdEntity>)info.GetValue("_ad", typeof(EntityCollection <AdEntity>));
         _snRelationshipss   = (EntityCollection <SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection <SnRelationshipEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if (_aspnetApplications != null)
         {
             _aspnetApplications.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 protected AspnetRolesEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetUsersInRoles = (EntityCollection <AspnetUsersInRolesEntity>)info.GetValue("_aspnetUsersInRoles", typeof(EntityCollection <AspnetUsersInRolesEntity>));
         _calendarEditRoles  = (EntityCollection <CalendarEditRoleEntity>)info.GetValue("_calendarEditRoles", typeof(EntityCollection <CalendarEditRoleEntity>));
         _calendarViewRoles  = (EntityCollection <CalendarViewRoleEntity>)info.GetValue("_calendarViewRoles", typeof(EntityCollection <CalendarViewRoleEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if (_aspnetApplications != null)
         {
             _aspnetApplications.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Esempio n. 4
0
 protected SnGroupCategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snGroups          = (EntityCollection <SnGroupEntity>)info.GetValue("_snGroups", typeof(EntityCollection <SnGroupEntity>));
         _aspnetApplication = (AspnetApplicationsEntity)info.GetValue("_aspnetApplication", typeof(AspnetApplicationsEntity));
         if (_aspnetApplication != null)
         {
             _aspnetApplication.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if (_language != null)
         {
             _language.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 protected ListEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _listItems         = (EntityCollection <ListItemEntity>)info.GetValue("_listItems", typeof(EntityCollection <ListItemEntity>));
         _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);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 /// <summary> Removes the sync logic for member _aspnetApplications</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 DesetupSyncAspnetApplications(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetApplications, new PropertyChangedEventHandler(OnAspnetApplicationsPropertyChanged), "AspnetApplications", MonoSoftware.MonoX.DAL.RelationClasses.StaticCampaignRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)CampaignFieldIndex.ApplicationId });
     _aspnetApplications = 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 AspnetPathsEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetPersonalizationPerUser = (EntityCollection<AspnetPersonalizationPerUserEntity>)info.GetValue("_aspnetPersonalizationPerUser", typeof(EntityCollection<AspnetPersonalizationPerUserEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if(_aspnetApplications!=null)
         {
             _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetPersonalizationAllUsers = (AspnetPersonalizationAllUsersEntity)info.GetValue("_aspnetPersonalizationAllUsers", typeof(AspnetPersonalizationAllUsersEntity));
         if(_aspnetPersonalizationAllUsers!=null)
         {
             _aspnetPersonalizationAllUsers.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 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
 }
 /// <summary> Removes the sync logic for member _aspnetApplications</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 DesetupSyncAspnetApplications(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetApplications, new PropertyChangedEventHandler( OnAspnetApplicationsPropertyChanged ), "AspnetApplications", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)NewsCategoryFieldIndex.ApplicationId } );
     _aspnetApplications = null;
 }
 protected BlogEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _blogCategory = (EntityCollection<BlogCategoryEntity>)info.GetValue("_blogCategory", typeof(EntityCollection<BlogCategoryEntity>));
         _blogEditors = (EntityCollection<BlogEditorEntity>)info.GetValue("_blogEditors", typeof(EntityCollection<BlogEditorEntity>));
         _blogPosts = (EntityCollection<BlogPostEntity>)info.GetValue("_blogPosts", typeof(EntityCollection<BlogPostEntity>));
         _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
         _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);
         }
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if(_language!=null)
         {
             _language.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 _aspnetApplication</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 DesetupSyncAspnetApplication(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetApplication, new PropertyChangedEventHandler( OnAspnetApplicationPropertyChanged ), "AspnetApplication", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)SnDiscussionBoardFieldIndex.ApplicationId } );
     _aspnetApplication = null;
 }
 /// <summary> setups the sync logic for member _aspnetApplication</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetApplication(IEntityCore relatedEntity)
 {
     if(_aspnetApplication!=relatedEntity)
     {
         DesetupSyncAspnetApplication(true, true);
         _aspnetApplication = (AspnetApplicationsEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetApplication, new PropertyChangedEventHandler( OnAspnetApplicationPropertyChanged ), "AspnetApplication", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, new string[] {  } );
     }
 }
 protected PageEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _adPage = (EntityCollection<AdPageEntity>)info.GetValue("_adPage", typeof(EntityCollection<AdPageEntity>));
         _documents = (EntityCollection<DocumentEntity>)info.GetValue("_documents", typeof(EntityCollection<DocumentEntity>));
         _navigationItems = (EntityCollection<NavigationEntity>)info.GetValue("_navigationItems", typeof(EntityCollection<NavigationEntity>));
         _pageEditRoles = (EntityCollection<PageEditRoleEntity>)info.GetValue("_pageEditRoles", typeof(EntityCollection<PageEditRoleEntity>));
         _pageLocalizations = (EntityCollection<PageLocalizationEntity>)info.GetValue("_pageLocalizations", typeof(EntityCollection<PageLocalizationEntity>));
         _pageRoles = (EntityCollection<PageRoleEntity>)info.GetValue("_pageRoles", typeof(EntityCollection<PageRoleEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if(_aspnetApplications!=null)
         {
             _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity));
         if(_aspnetUsers!=null)
         {
             _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 protected PollEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _pollAnswers = (EntityCollection<PollAnswerEntity>)info.GetValue("_pollAnswers", typeof(EntityCollection<PollAnswerEntity>));
         _pollLocalizations = (EntityCollection<PollLocalizationEntity>)info.GetValue("_pollLocalizations", typeof(EntityCollection<PollLocalizationEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _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);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 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
 }
 protected NavigationEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _childNavigationItems = (EntityCollection<NavigationEntity>)info.GetValue("_childNavigationItems", typeof(EntityCollection<NavigationEntity>));
         _navigationLocalizations = (EntityCollection<NavigationLocalizationEntity>)info.GetValue("_navigationLocalizations", typeof(EntityCollection<NavigationLocalizationEntity>));
         _navigationRoles = (EntityCollection<NavigationRoleEntity>)info.GetValue("_navigationRoles", typeof(EntityCollection<NavigationRoleEntity>));
         _aspnetApplication = (AspnetApplicationsEntity)info.GetValue("_aspnetApplication", typeof(AspnetApplicationsEntity));
         if(_aspnetApplication!=null)
         {
             _aspnetApplication.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _parentNavigationItem = (NavigationEntity)info.GetValue("_parentNavigationItem", typeof(NavigationEntity));
         if(_parentNavigationItem!=null)
         {
             _parentNavigationItem.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> setups the sync logic for member _aspnetApplications</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetApplications(IEntityCore relatedEntity)
 {
     if(_aspnetApplications!=relatedEntity)
     {
         DesetupSyncAspnetApplications(true, true);
         _aspnetApplications = (AspnetApplicationsEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetApplications, new PropertyChangedEventHandler( OnAspnetApplicationsPropertyChanged ), "AspnetApplications", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsCategoryRelations.AspnetApplicationsEntityUsingApplicationIdStatic, true, new string[] {  } );
     }
 }
 protected AspnetUsersEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetPersonalizationPerUser = (EntityCollection<AspnetPersonalizationPerUserEntity>)info.GetValue("_aspnetPersonalizationPerUser", typeof(EntityCollection<AspnetPersonalizationPerUserEntity>));
         _aspnetUsersInRoles = (EntityCollection<AspnetUsersInRolesEntity>)info.GetValue("_aspnetUsersInRoles", typeof(EntityCollection<AspnetUsersInRolesEntity>));
         _auditInfos = (EntityCollection<AuditInfoEntity>)info.GetValue("_auditInfos", typeof(EntityCollection<AuditInfoEntity>));
         _blogs = (EntityCollection<BlogEntity>)info.GetValue("_blogs", typeof(EntityCollection<BlogEntity>));
         _blogEditors = (EntityCollection<BlogEditorEntity>)info.GetValue("_blogEditors", typeof(EntityCollection<BlogEditorEntity>));
         _blogPosts = (EntityCollection<BlogPostEntity>)info.GetValue("_blogPosts", typeof(EntityCollection<BlogPostEntity>));
         _calendars = (EntityCollection<CalendarEntity>)info.GetValue("_calendars", typeof(EntityCollection<CalendarEntity>));
         _calendarEvents = (EntityCollection<CalendarEventEntity>)info.GetValue("_calendarEvents", typeof(EntityCollection<CalendarEventEntity>));
         _calendarModerators = (EntityCollection<CalendarModeratorEntity>)info.GetValue("_calendarModerators", typeof(EntityCollection<CalendarModeratorEntity>));
         _documents = (EntityCollection<DocumentEntity>)info.GetValue("_documents", typeof(EntityCollection<DocumentEntity>));
         _lists = (EntityCollection<ListEntity>)info.GetValue("_lists", typeof(EntityCollection<ListEntity>));
         _newsItems = (EntityCollection<NewsItemEntity>)info.GetValue("_newsItems", typeof(EntityCollection<NewsItemEntity>));
         _newsletters = (EntityCollection<NewsletterEntity>)info.GetValue("_newsletters", typeof(EntityCollection<NewsletterEntity>));
         _newsPublishQueue = (EntityCollection<NewsPublishQueueEntity>)info.GetValue("_newsPublishQueue", typeof(EntityCollection<NewsPublishQueueEntity>));
         _oaTokens = (EntityCollection<OaTokenEntity>)info.GetValue("_oaTokens", typeof(EntityCollection<OaTokenEntity>));
         _page = (EntityCollection<PageEntity>)info.GetValue("_page", typeof(EntityCollection<PageEntity>));
         _polls = (EntityCollection<PollEntity>)info.GetValue("_polls", typeof(EntityCollection<PollEntity>));
         _privacyLevelDefinition = (EntityCollection<PrivacyLevelDefinitionEntity>)info.GetValue("_privacyLevelDefinition", typeof(EntityCollection<PrivacyLevelDefinitionEntity>));
         _snAlbums = (EntityCollection<SnAlbumEntity>)info.GetValue("_snAlbums", typeof(EntityCollection<SnAlbumEntity>));
         _snBlockUsers = (EntityCollection<SnBlockUserEntity>)info.GetValue("_snBlockUsers", typeof(EntityCollection<SnBlockUserEntity>));
         _snBlockUsers_ = (EntityCollection<SnBlockUserEntity>)info.GetValue("_snBlockUsers_", typeof(EntityCollection<SnBlockUserEntity>));
         _snComments = (EntityCollection<SnCommentEntity>)info.GetValue("_snComments", typeof(EntityCollection<SnCommentEntity>));
         _snDiscussionMessage = (EntityCollection<SnDiscussionMessageEntity>)info.GetValue("_snDiscussionMessage", typeof(EntityCollection<SnDiscussionMessageEntity>));
         _snEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snEvents", typeof(EntityCollection<SnEventEntity>));
         _snFriendEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snFriendEvents", typeof(EntityCollection<SnEventEntity>));
         _snFiles = (EntityCollection<SnFileEntity>)info.GetValue("_snFiles", typeof(EntityCollection<SnFileEntity>));
         _snFriendsUsers = (EntityCollection<SnFriendEntity>)info.GetValue("_snFriendsUsers", typeof(EntityCollection<SnFriendEntity>));
         _snFriendsFriends = (EntityCollection<SnFriendEntity>)info.GetValue("_snFriendsFriends", typeof(EntityCollection<SnFriendEntity>));
         _snFriendLists = (EntityCollection<SnFriendListEntity>)info.GetValue("_snFriendLists", typeof(EntityCollection<SnFriendListEntity>));
         _snFriendListMembers = (EntityCollection<SnFriendListMemberEntity>)info.GetValue("_snFriendListMembers", typeof(EntityCollection<SnFriendListMemberEntity>));
         _snFriendRequestsFriends = (EntityCollection<SnFriendRequestEntity>)info.GetValue("_snFriendRequestsFriends", typeof(EntityCollection<SnFriendRequestEntity>));
         _snFriendRequestsUsers = (EntityCollection<SnFriendRequestEntity>)info.GetValue("_snFriendRequestsUsers", typeof(EntityCollection<SnFriendRequestEntity>));
         _snGroups = (EntityCollection<SnGroupEntity>)info.GetValue("_snGroups", typeof(EntityCollection<SnGroupEntity>));
         _snGroupMembers = (EntityCollection<SnGroupMemberEntity>)info.GetValue("_snGroupMembers", typeof(EntityCollection<SnGroupMemberEntity>));
         _snGroupRequests = (EntityCollection<SnGroupRequestEntity>)info.GetValue("_snGroupRequests", typeof(EntityCollection<SnGroupRequestEntity>));
         _snMessages = (EntityCollection<SnMessageEntity>)info.GetValue("_snMessages", typeof(EntityCollection<SnMessageEntity>));
         _snMessageRecipients = (EntityCollection<SnMessageRecipientEntity>)info.GetValue("_snMessageRecipients", typeof(EntityCollection<SnMessageRecipientEntity>));
         _snNotesPostedTo = (EntityCollection<SnNoteEntity>)info.GetValue("_snNotesPostedTo", typeof(EntityCollection<SnNoteEntity>));
         _snNotesAuthoredBy = (EntityCollection<SnNoteEntity>)info.GetValue("_snNotesAuthoredBy", typeof(EntityCollection<SnNoteEntity>));
         _snRating = (EntityCollection<SnRatingEntity>)info.GetValue("_snRating", typeof(EntityCollection<SnRatingEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _snSubscribers = (EntityCollection<SnSubscriberEntity>)info.GetValue("_snSubscribers", typeof(EntityCollection<SnSubscriberEntity>));
         _userSocialIdentities = (EntityCollection<UserSocialIdentityEntity>)info.GetValue("_userSocialIdentities", typeof(EntityCollection<UserSocialIdentityEntity>));
         _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity));
         if(_aspnetApplications!=null)
         {
             _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetMembership = (AspnetMembershipEntity)info.GetValue("_aspnetMembership", typeof(AspnetMembershipEntity));
         if(_aspnetMembership!=null)
         {
             _aspnetMembership.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetProfile = (AspnetProfileEntity)info.GetValue("_aspnetProfile", typeof(AspnetProfileEntity));
         if(_aspnetProfile!=null)
         {
             _aspnetProfile.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _userAvatar = (UserAvatarEntity)info.GetValue("_userAvatar", typeof(UserAvatarEntity));
         if(_userAvatar!=null)
         {
             _userAvatar.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _userProfile = (UserProfileEntity)info.GetValue("_userProfile", typeof(UserProfileEntity));
         if(_userProfile!=null)
         {
             _userProfile.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }