Inheritance: CommonEntityBase
 protected DocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snRelationships = (EntityCollection <SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection <SnRelationshipEntity>));
         _aspnetUsers     = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity));
         if (_aspnetUsers != null)
         {
             _aspnetUsers.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if (_language != null)
         {
             _language.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 _aspnetUsers</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUsers(IEntityCore relatedEntity)
 {
     if (_aspnetUsers != relatedEntity)
     {
         DesetupSyncAspnetUsers(true, true);
         _aspnetUsers = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_aspnetUsers, new PropertyChangedEventHandler(OnAspnetUsersPropertyChanged), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.AspnetUsersEntityUsingUserIdStatic, true, new string[] {  });
     }
 }
示例#3
0
 /// <summary> setups the sync logic for member _aspnetUserFriend</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUserFriend(IEntityCore relatedEntity)
 {
     if (_aspnetUserFriend != relatedEntity)
     {
         DesetupSyncAspnetUserFriend(true, true);
         _aspnetUserFriend = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_aspnetUserFriend, new PropertyChangedEventHandler(OnAspnetUserFriendPropertyChanged), "AspnetUserFriend", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendRelations.AspnetUsersEntityUsingFriendUserIdStatic, true, new string[] {  });
     }
 }
示例#4
0
 /// <summary> setups the sync logic for member _aspnetUser</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUser(IEntityCore relatedEntity)
 {
     if (_aspnetUser != relatedEntity)
     {
         DesetupSyncAspnetUser(true, true);
         _aspnetUser = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_aspnetUser, new PropertyChangedEventHandler(OnAspnetUserPropertyChanged), "AspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.AspnetUsersEntityUsingUserIdStatic, true, new string[] {  });
     }
 }
 protected UserSocialIdentityEntity(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);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 protected CalendarEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _calendarEditRoles    = (EntityCollection <CalendarEditRoleEntity>)info.GetValue("_calendarEditRoles", typeof(EntityCollection <CalendarEditRoleEntity>));
         _calendarEvents       = (EntityCollection <CalendarEventEntity>)info.GetValue("_calendarEvents", typeof(EntityCollection <CalendarEventEntity>));
         _calendarEventEntries = (EntityCollection <CalendarEventEntryEntity>)info.GetValue("_calendarEventEntries", typeof(EntityCollection <CalendarEventEntryEntity>));
         _calendarModerators   = (EntityCollection <CalendarModeratorEntity>)info.GetValue("_calendarModerators", typeof(EntityCollection <CalendarModeratorEntity>));
         _calendarViewRoles    = (EntityCollection <CalendarViewRoleEntity>)info.GetValue("_calendarViewRoles", typeof(EntityCollection <CalendarViewRoleEntity>));
         _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 UserProfileEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity));
         if (_privacyLevel != null)
         {
             _privacyLevel.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _termsAndConditions = (TermsAndConditionsEntity)info.GetValue("_termsAndConditions", typeof(TermsAndConditionsEntity));
         if (_termsAndConditions != null)
         {
             _termsAndConditions.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 _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetUsers, new PropertyChangedEventHandler(OnAspnetUsersPropertyChanged), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "PrivacyLevelDefinition", resetFKFields, new int[] { (int)PrivacyLevelDefinitionFieldIndex.UserId });
     _aspnetUsers = null;
 }
 /// <summary> setups the sync logic for member _aspnetUserPostedTo</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUserPostedTo(IEntityCore relatedEntity)
 {
     if(_aspnetUserPostedTo!=relatedEntity)
     {
         DesetupSyncAspnetUserPostedTo(true, true);
         _aspnetUserPostedTo = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetUserPostedTo, new PropertyChangedEventHandler( OnAspnetUserPostedToPropertyChanged ), "AspnetUserPostedTo", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnNoteRelations.AspnetUsersEntityUsingPostToUserIdStatic, true, new string[] {  } );
     }
 }
 protected SnDiscussionMessageEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
         _adminAttentionReportedByUser = (AspnetUsersEntity)info.GetValue("_adminAttentionReportedByUser", typeof(AspnetUsersEntity));
         if(_adminAttentionReportedByUser!=null)
         {
             _adminAttentionReportedByUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _deleteRequestedByUser = (AspnetUsersEntity)info.GetValue("_deleteRequestedByUser", typeof(AspnetUsersEntity));
         if(_deleteRequestedByUser!=null)
         {
             _deleteRequestedByUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _pinnedByUser = (AspnetUsersEntity)info.GetValue("_pinnedByUser", typeof(AspnetUsersEntity));
         if(_pinnedByUser!=null)
         {
             _pinnedByUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snDiscussionTopic = (SnDiscussionTopicEntity)info.GetValue("_snDiscussionTopic", typeof(SnDiscussionTopicEntity));
         if(_snDiscussionTopic!=null)
         {
             _snDiscussionTopic.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
 }
 protected CalendarEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _calendarEditRoles = (EntityCollection<CalendarEditRoleEntity>)info.GetValue("_calendarEditRoles", typeof(EntityCollection<CalendarEditRoleEntity>));
         _calendarEvents = (EntityCollection<CalendarEventEntity>)info.GetValue("_calendarEvents", typeof(EntityCollection<CalendarEventEntity>));
         _calendarEventEntries = (EntityCollection<CalendarEventEntryEntity>)info.GetValue("_calendarEventEntries", typeof(EntityCollection<CalendarEventEntryEntity>));
         _calendarModerators = (EntityCollection<CalendarModeratorEntity>)info.GetValue("_calendarModerators", typeof(EntityCollection<CalendarModeratorEntity>));
         _calendarViewRoles = (EntityCollection<CalendarViewRoleEntity>)info.GetValue("_calendarViewRoles", typeof(EntityCollection<CalendarViewRoleEntity>));
         _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
 }
 /// <summary> Removes the sync logic for member _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUsers, new PropertyChangedEventHandler( OnAspnetUsersPropertyChanged ), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardModeratorRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)SnDiscussionBoardModeratorFieldIndex.UserId } );
     _aspnetUsers = null;
 }
 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
 }
示例#17
0
 /// <summary> Removes the sync logic for member _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetUsers, new PropertyChangedEventHandler(OnAspnetUsersPropertyChanged), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionBoardModeratorRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)SnDiscussionBoardModeratorFieldIndex.UserId });
     _aspnetUsers = null;
 }
 /// <summary> Removes the sync logic for member _aspnetUserPostedTo</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 DesetupSyncAspnetUserPostedTo(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUserPostedTo, new PropertyChangedEventHandler( OnAspnetUserPostedToPropertyChanged ), "AspnetUserPostedTo", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnNoteRelations.AspnetUsersEntityUsingPostToUserIdStatic, true, signalRelatedEntity, "SnNotesAuthoredBy", resetFKFields, new int[] { (int)SnNoteFieldIndex.PostToUserId } );
     _aspnetUserPostedTo = null;
 }
 /// <summary> Removes the sync logic for member _friendAspnetUsers</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 DesetupSyncFriendAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _friendAspnetUsers, new PropertyChangedEventHandler( OnFriendAspnetUsersPropertyChanged ), "FriendAspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnEventRelations.AspnetUsersEntityUsingFriendIdStatic, true, signalRelatedEntity, "SnFriendEvents", resetFKFields, new int[] { (int)SnEventFieldIndex.FriendId } );
     _friendAspnetUsers = null;
 }
 /// <summary> Removes the sync logic for member _aspnetUser</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 DesetupSyncAspnetUser(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUser, new PropertyChangedEventHandler( OnAspnetUserPropertyChanged ), "AspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticAuditInfoRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "AuditInfos", resetFKFields, new int[] { (int)AuditInfoFieldIndex.UserId } );
     _aspnetUser = null;
 }
 protected NewsletterEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _newsletterLogs = (EntityCollection<NewsletterLogEntity>)info.GetValue("_newsletterLogs", typeof(EntityCollection<NewsletterLogEntity>));
         _newsletterRoles = (EntityCollection<NewsletterRoleEntity>)info.GetValue("_newsletterRoles", typeof(EntityCollection<NewsletterRoleEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetRolesCollectionViaNewsletterRole = (EntityCollection<AspnetRolesEntity>)info.GetValue("_aspnetRolesCollectionViaNewsletterRole", typeof(EntityCollection<AspnetRolesEntity>));
         _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
 }
 protected DocumentEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity));
         if(_aspnetUsers!=null)
         {
             _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity));
         if(_language!=null)
         {
             _language.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
 }
 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 BlogPostEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _blogPostCategories = (EntityCollection<BlogPostCategoryEntity>)info.GetValue("_blogPostCategories", typeof(EntityCollection<BlogPostCategoryEntity>));
         _blogPostRoles = (EntityCollection<BlogPostRoleEntity>)info.GetValue("_blogPostRoles", typeof(EntityCollection<BlogPostRoleEntity>));
         _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);
         }
         _blog = (BlogEntity)info.GetValue("_blog", typeof(BlogEntity));
         if(_blog!=null)
         {
             _blog.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
示例#25
0
 /// <summary> Removes the sync logic for member _aspnetUserFriend</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 DesetupSyncAspnetUserFriend(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetUserFriend, new PropertyChangedEventHandler(OnAspnetUserFriendPropertyChanged), "AspnetUserFriend", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendRelations.AspnetUsersEntityUsingFriendUserIdStatic, true, signalRelatedEntity, "SnFriendsFriends", resetFKFields, new int[] { (int)SnFriendFieldIndex.FriendUserId });
     _aspnetUserFriend = null;
 }
 /// <summary> Removes the sync logic for member _blockedAspnetUser</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 DesetupSyncBlockedAspnetUser(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_blockedAspnetUser, new PropertyChangedEventHandler(OnBlockedAspnetUserPropertyChanged), "BlockedAspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnBlockUserRelations.AspnetUsersEntityUsingBlockedUserIdStatic, true, signalRelatedEntity, "SnBlockUsers_", resetFKFields, new int[] { (int)SnBlockUserFieldIndex.BlockedUserId });
     _blockedAspnetUser = null;
 }
示例#27
0
 /// <summary> Removes the sync logic for member _aspnetUser</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 DesetupSyncAspnetUser(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetUser, new PropertyChangedEventHandler(OnAspnetUserPropertyChanged), "AspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "SnGroupRequests", resetFKFields, new int[] { (int)SnGroupRequestFieldIndex.UserId });
     _aspnetUser = null;
 }
 /// <summary> Removes the sync logic for member _pinnedByUser</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 DesetupSyncPinnedByUser(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _pinnedByUser, new PropertyChangedEventHandler( OnPinnedByUserPropertyChanged ), "PinnedByUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionMessageRelations.AspnetUsersEntityUsingPinnedByUserIdStatic, true, signalRelatedEntity, "SnDiscussionMessage", resetFKFields, new int[] { (int)SnDiscussionMessageFieldIndex.PinnedByUserId } );
     _pinnedByUser = null;
 }
 /// <summary> Removes the sync logic for member _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUsers, new PropertyChangedEventHandler( OnAspnetUsersPropertyChanged ), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserAvatarRelations.AspnetUsersEntityUsingIdStatic, true, signalRelatedEntity, "UserAvatar", false, new int[] { (int)UserAvatarFieldIndex.Id } );
     _aspnetUsers = null;
 }
 /// <summary> setups the sync logic for member _pinnedByUser</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncPinnedByUser(IEntityCore relatedEntity)
 {
     if(_pinnedByUser!=relatedEntity)
     {
         DesetupSyncPinnedByUser(true, true);
         _pinnedByUser = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _pinnedByUser, new PropertyChangedEventHandler( OnPinnedByUserPropertyChanged ), "PinnedByUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnDiscussionMessageRelations.AspnetUsersEntityUsingPinnedByUserIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> setups the sync logic for member _friendAspnetUsers</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncFriendAspnetUsers(IEntityCore relatedEntity)
 {
     if(_friendAspnetUsers!=relatedEntity)
     {
         DesetupSyncFriendAspnetUsers(true, true);
         _friendAspnetUsers = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _friendAspnetUsers, new PropertyChangedEventHandler( OnFriendAspnetUsersPropertyChanged ), "FriendAspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnEventRelations.AspnetUsersEntityUsingFriendIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_aspnetUsers, new PropertyChangedEventHandler(OnAspnetUsersPropertyChanged), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticUserAvatarRelations.AspnetUsersEntityUsingIdStatic, true, signalRelatedEntity, "UserAvatar", false, new int[] { (int)UserAvatarFieldIndex.Id });
     _aspnetUsers = null;
 }
 protected SnGroupEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _snAlbum = (EntityCollection<SnAlbumEntity>)info.GetValue("_snAlbum", typeof(EntityCollection<SnAlbumEntity>));
         _snDiscussionBoard = (EntityCollection<SnDiscussionBoardEntity>)info.GetValue("_snDiscussionBoard", typeof(EntityCollection<SnDiscussionBoardEntity>));
         _snEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snEvents", typeof(EntityCollection<SnEventEntity>));
         _snGroupMembers = (EntityCollection<SnGroupMemberEntity>)info.GetValue("_snGroupMembers", typeof(EntityCollection<SnGroupMemberEntity>));
         _snGroupRequests = (EntityCollection<SnGroupRequestEntity>)info.GetValue("_snGroupRequests", typeof(EntityCollection<SnGroupRequestEntity>));
         _snNotes = (EntityCollection<SnNoteEntity>)info.GetValue("_snNotes", typeof(EntityCollection<SnNoteEntity>));
         _snRelationshipss = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationshipss", typeof(EntityCollection<SnRelationshipEntity>));
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snGroupCategory = (SnGroupCategoryEntity)info.GetValue("_snGroupCategory", typeof(SnGroupCategoryEntity));
         if(_snGroupCategory!=null)
         {
             _snGroupCategory.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 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
 }
 /// <summary> setups the sync logic for member _aspnetUsers</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUsers(IEntityCore relatedEntity)
 {
     if(_aspnetUsers!=relatedEntity)
     {
         DesetupSyncAspnetUsers(true, true);
         _aspnetUsers = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetUsers, new PropertyChangedEventHandler( OnAspnetUsersPropertyChanged ), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.AspnetUsersEntityUsingUserIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _blockedAspnetUser</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 DesetupSyncBlockedAspnetUser(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _blockedAspnetUser, new PropertyChangedEventHandler( OnBlockedAspnetUserPropertyChanged ), "BlockedAspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnBlockUserRelations.AspnetUsersEntityUsingBlockedUserIdStatic, true, signalRelatedEntity, "SnBlockUsers_", resetFKFields, new int[] { (int)SnBlockUserFieldIndex.BlockedUserId } );
     _blockedAspnetUser = null;
 }
 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
 }
 /// <summary> Removes the sync logic for member _aspnetUsers</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 DesetupSyncAspnetUsers(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUsers, new PropertyChangedEventHandler( OnAspnetUsersPropertyChanged ), "AspnetUsers", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "PrivacyLevelDefinition", resetFKFields, new int[] { (int)PrivacyLevelDefinitionFieldIndex.UserId } );
     _aspnetUsers = null;
 }
 /// <summary> Removes the sync logic for member _aspnetUserFriend</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 DesetupSyncAspnetUserFriend(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _aspnetUserFriend, new PropertyChangedEventHandler( OnAspnetUserFriendPropertyChanged ), "AspnetUserFriend", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendRequestRelations.AspnetUsersEntityUsingUserIdStatic, true, signalRelatedEntity, "SnFriendRequestsUsers", resetFKFields, new int[] { (int)SnFriendRequestFieldIndex.UserId } );
     _aspnetUserFriend = null;
 }
 protected AuditInfoEntity(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);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 /// <summary> setups the sync logic for member _aspnetUserFriend</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUserFriend(IEntityCore relatedEntity)
 {
     if(_aspnetUserFriend!=relatedEntity)
     {
         DesetupSyncAspnetUserFriend(true, true);
         _aspnetUserFriend = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetUserFriend, new PropertyChangedEventHandler( OnAspnetUserFriendPropertyChanged ), "AspnetUserFriend", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendRequestRelations.AspnetUsersEntityUsingUserIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> setups the sync logic for member _aspnetUser</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAspnetUser(IEntityCore relatedEntity)
 {
     if(_aspnetUser!=relatedEntity)
     {
         DesetupSyncAspnetUser(true, true);
         _aspnetUser = (AspnetUsersEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _aspnetUser, new PropertyChangedEventHandler( OnAspnetUserPropertyChanged ), "AspnetUser", MonoSoftware.MonoX.DAL.RelationClasses.StaticAuditInfoRelations.AspnetUsersEntityUsingUserIdStatic, true, new string[] {  } );
     }
 }
 protected UserProfileEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity));
         if(_privacyLevel!=null)
         {
             _privacyLevel.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _termsAndConditions = (TermsAndConditionsEntity)info.GetValue("_termsAndConditions", typeof(TermsAndConditionsEntity));
         if(_termsAndConditions!=null)
         {
             _termsAndConditions.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
 }