/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected UserTitleEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _users = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_users", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsers = info.GetBoolean("_alwaysFetchUsers"); _alreadyFetchedUsers = info.GetBoolean("_alreadyFetchedUsers"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _users = new SD.HnD.DAL.CollectionClasses.UserCollection(); _users.SetContainingEntityInfo(this, "UserTitle"); PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _forumRoleForumActionRights = new SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection(); _forumRoleForumActionRights.SetContainingEntityInfo(this, "Role"); _roleAuditAction = new SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection(); _roleAuditAction.SetContainingEntityInfo(this, "Role"); _roleSystemActionRights = new SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection(); _roleSystemActionRights.SetContainingEntityInfo(this, "Role"); _roleUser = new SD.HnD.DAL.CollectionClasses.RoleUserCollection(); _roleUser.SetContainingEntityInfo(this, "Role"); _systemDataAnonymousRole = new SD.HnD.DAL.CollectionClasses.SystemDataCollection(); _systemDataAnonymousRole.SetContainingEntityInfo(this, "RoleForAnonymous"); _systemDataDefaultRoleNewUser = new SD.HnD.DAL.CollectionClasses.SystemDataCollection(); _systemDataDefaultRoleNewUser.SetContainingEntityInfo(this, "RoleForNewUser"); _assignedSystemActionRights = new SD.HnD.DAL.CollectionClasses.ActionRightCollection(); _assignedAuditActions = new SD.HnD.DAL.CollectionClasses.AuditActionCollection(); _users = new SD.HnD.DAL.CollectionClasses.UserCollection(); PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected RoleEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _forumRoleForumActionRights = (SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection)info.GetValue("_forumRoleForumActionRights", typeof(SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection)); _alwaysFetchForumRoleForumActionRights = info.GetBoolean("_alwaysFetchForumRoleForumActionRights"); _alreadyFetchedForumRoleForumActionRights = info.GetBoolean("_alreadyFetchedForumRoleForumActionRights"); _roleAuditAction = (SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection)info.GetValue("_roleAuditAction", typeof(SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection)); _alwaysFetchRoleAuditAction = info.GetBoolean("_alwaysFetchRoleAuditAction"); _alreadyFetchedRoleAuditAction = info.GetBoolean("_alreadyFetchedRoleAuditAction"); _roleSystemActionRights = (SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection)info.GetValue("_roleSystemActionRights", typeof(SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection)); _alwaysFetchRoleSystemActionRights = info.GetBoolean("_alwaysFetchRoleSystemActionRights"); _alreadyFetchedRoleSystemActionRights = info.GetBoolean("_alreadyFetchedRoleSystemActionRights"); _roleUser = (SD.HnD.DAL.CollectionClasses.RoleUserCollection)info.GetValue("_roleUser", typeof(SD.HnD.DAL.CollectionClasses.RoleUserCollection)); _alwaysFetchRoleUser = info.GetBoolean("_alwaysFetchRoleUser"); _alreadyFetchedRoleUser = info.GetBoolean("_alreadyFetchedRoleUser"); _systemDataAnonymousRole = (SD.HnD.DAL.CollectionClasses.SystemDataCollection)info.GetValue("_systemDataAnonymousRole", typeof(SD.HnD.DAL.CollectionClasses.SystemDataCollection)); _alwaysFetchSystemDataAnonymousRole = info.GetBoolean("_alwaysFetchSystemDataAnonymousRole"); _alreadyFetchedSystemDataAnonymousRole = info.GetBoolean("_alreadyFetchedSystemDataAnonymousRole"); _systemDataDefaultRoleNewUser = (SD.HnD.DAL.CollectionClasses.SystemDataCollection)info.GetValue("_systemDataDefaultRoleNewUser", typeof(SD.HnD.DAL.CollectionClasses.SystemDataCollection)); _alwaysFetchSystemDataDefaultRoleNewUser = info.GetBoolean("_alwaysFetchSystemDataDefaultRoleNewUser"); _alreadyFetchedSystemDataDefaultRoleNewUser = info.GetBoolean("_alreadyFetchedSystemDataDefaultRoleNewUser"); _assignedSystemActionRights = (SD.HnD.DAL.CollectionClasses.ActionRightCollection)info.GetValue("_assignedSystemActionRights", typeof(SD.HnD.DAL.CollectionClasses.ActionRightCollection)); _alwaysFetchAssignedSystemActionRights = info.GetBoolean("_alwaysFetchAssignedSystemActionRights"); _alreadyFetchedAssignedSystemActionRights = info.GetBoolean("_alreadyFetchedAssignedSystemActionRights"); _assignedAuditActions = (SD.HnD.DAL.CollectionClasses.AuditActionCollection)info.GetValue("_assignedAuditActions", typeof(SD.HnD.DAL.CollectionClasses.AuditActionCollection)); _alwaysFetchAssignedAuditActions = info.GetBoolean("_alwaysFetchAssignedAuditActions"); _alreadyFetchedAssignedAuditActions = info.GetBoolean("_alreadyFetchedAssignedAuditActions"); _users = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_users", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsers = info.GetBoolean("_alwaysFetchUsers"); _alreadyFetchedUsers = info.GetBoolean("_alreadyFetchedUsers"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _auditDataThreadRelated = new SD.HnD.DAL.CollectionClasses.AuditDataThreadRelatedCollection(); _auditDataThreadRelated.SetContainingEntityInfo(this, "Thread"); _presentInBookmarks = new SD.HnD.DAL.CollectionClasses.BookmarkCollection(); _presentInBookmarks.SetContainingEntityInfo(this, "Thread"); _messages = new SD.HnD.DAL.CollectionClasses.MessageCollection(); _messages.SetContainingEntityInfo(this, "Thread"); _threadSubscription = new SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection(); _threadSubscription.SetContainingEntityInfo(this, "Thread"); _usersWhoBookmarkedThread = new SD.HnD.DAL.CollectionClasses.UserCollection(); _usersWhoPostedInThread = new SD.HnD.DAL.CollectionClasses.UserCollection(); _usersWhoSubscribedThread = new SD.HnD.DAL.CollectionClasses.UserCollection(); _forumReturnsNewIfNotFound = true; _userWhoStartedThreadReturnsNewIfNotFound = true; _supportQueueThreadReturnsNewIfNotFound = true; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected ThreadEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _auditDataThreadRelated = (SD.HnD.DAL.CollectionClasses.AuditDataThreadRelatedCollection)info.GetValue("_auditDataThreadRelated", typeof(SD.HnD.DAL.CollectionClasses.AuditDataThreadRelatedCollection)); _alwaysFetchAuditDataThreadRelated = info.GetBoolean("_alwaysFetchAuditDataThreadRelated"); _alreadyFetchedAuditDataThreadRelated = info.GetBoolean("_alreadyFetchedAuditDataThreadRelated"); _presentInBookmarks = (SD.HnD.DAL.CollectionClasses.BookmarkCollection)info.GetValue("_presentInBookmarks", typeof(SD.HnD.DAL.CollectionClasses.BookmarkCollection)); _alwaysFetchPresentInBookmarks = info.GetBoolean("_alwaysFetchPresentInBookmarks"); _alreadyFetchedPresentInBookmarks = info.GetBoolean("_alreadyFetchedPresentInBookmarks"); _messages = (SD.HnD.DAL.CollectionClasses.MessageCollection)info.GetValue("_messages", typeof(SD.HnD.DAL.CollectionClasses.MessageCollection)); _alwaysFetchMessages = info.GetBoolean("_alwaysFetchMessages"); _alreadyFetchedMessages = info.GetBoolean("_alreadyFetchedMessages"); _threadSubscription = (SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection)info.GetValue("_threadSubscription", typeof(SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection)); _alwaysFetchThreadSubscription = info.GetBoolean("_alwaysFetchThreadSubscription"); _alreadyFetchedThreadSubscription = info.GetBoolean("_alreadyFetchedThreadSubscription"); _usersWhoBookmarkedThread = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_usersWhoBookmarkedThread", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsersWhoBookmarkedThread = info.GetBoolean("_alwaysFetchUsersWhoBookmarkedThread"); _alreadyFetchedUsersWhoBookmarkedThread = info.GetBoolean("_alreadyFetchedUsersWhoBookmarkedThread"); _usersWhoPostedInThread = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_usersWhoPostedInThread", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsersWhoPostedInThread = info.GetBoolean("_alwaysFetchUsersWhoPostedInThread"); _alreadyFetchedUsersWhoPostedInThread = info.GetBoolean("_alreadyFetchedUsersWhoPostedInThread"); _usersWhoSubscribedThread = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_usersWhoSubscribedThread", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsersWhoSubscribedThread = info.GetBoolean("_alwaysFetchUsersWhoSubscribedThread"); _alreadyFetchedUsersWhoSubscribedThread = info.GetBoolean("_alreadyFetchedUsersWhoSubscribedThread"); _forum = (ForumEntity)info.GetValue("_forum", typeof(ForumEntity)); if(_forum!=null) { _forum.AfterSave+=new EventHandler(OnEntityAfterSave); } _forumReturnsNewIfNotFound = info.GetBoolean("_forumReturnsNewIfNotFound"); _alwaysFetchForum = info.GetBoolean("_alwaysFetchForum"); _alreadyFetchedForum = info.GetBoolean("_alreadyFetchedForum"); _userWhoStartedThread = (UserEntity)info.GetValue("_userWhoStartedThread", typeof(UserEntity)); if(_userWhoStartedThread!=null) { _userWhoStartedThread.AfterSave+=new EventHandler(OnEntityAfterSave); } _userWhoStartedThreadReturnsNewIfNotFound = info.GetBoolean("_userWhoStartedThreadReturnsNewIfNotFound"); _alwaysFetchUserWhoStartedThread = info.GetBoolean("_alwaysFetchUserWhoStartedThread"); _alreadyFetchedUserWhoStartedThread = info.GetBoolean("_alreadyFetchedUserWhoStartedThread"); _supportQueueThread = (SupportQueueThreadEntity)info.GetValue("_supportQueueThread", typeof(SupportQueueThreadEntity)); if(_supportQueueThread!=null) { _supportQueueThread.AfterSave+=new EventHandler(OnEntityAfterSave); } _supportQueueThreadReturnsNewIfNotFound = info.GetBoolean("_supportQueueThreadReturnsNewIfNotFound"); _alwaysFetchSupportQueueThread = info.GetBoolean("_alwaysFetchSupportQueueThread"); _alreadyFetchedSupportQueueThread = info.GetBoolean("_alreadyFetchedSupportQueueThread"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _forumRoleForumActionRights = new SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection(); _forumRoleForumActionRights.SetContainingEntityInfo(this, "Forum"); _threads = new SD.HnD.DAL.CollectionClasses.ThreadCollection(); _threads.SetContainingEntityInfo(this, "Forum"); _usersWhoStartedThreads = new SD.HnD.DAL.CollectionClasses.UserCollection(); _sectionReturnsNewIfNotFound = true; _defaultSupportQueueReturnsNewIfNotFound = true; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected ForumEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _forumRoleForumActionRights = (SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection)info.GetValue("_forumRoleForumActionRights", typeof(SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection)); _alwaysFetchForumRoleForumActionRights = info.GetBoolean("_alwaysFetchForumRoleForumActionRights"); _alreadyFetchedForumRoleForumActionRights = info.GetBoolean("_alreadyFetchedForumRoleForumActionRights"); _threads = (SD.HnD.DAL.CollectionClasses.ThreadCollection)info.GetValue("_threads", typeof(SD.HnD.DAL.CollectionClasses.ThreadCollection)); _alwaysFetchThreads = info.GetBoolean("_alwaysFetchThreads"); _alreadyFetchedThreads = info.GetBoolean("_alreadyFetchedThreads"); _usersWhoStartedThreads = (SD.HnD.DAL.CollectionClasses.UserCollection)info.GetValue("_usersWhoStartedThreads", typeof(SD.HnD.DAL.CollectionClasses.UserCollection)); _alwaysFetchUsersWhoStartedThreads = info.GetBoolean("_alwaysFetchUsersWhoStartedThreads"); _alreadyFetchedUsersWhoStartedThreads = info.GetBoolean("_alreadyFetchedUsersWhoStartedThreads"); _section = (SectionEntity)info.GetValue("_section", typeof(SectionEntity)); if(_section!=null) { _section.AfterSave+=new EventHandler(OnEntityAfterSave); } _sectionReturnsNewIfNotFound = info.GetBoolean("_sectionReturnsNewIfNotFound"); _alwaysFetchSection = info.GetBoolean("_alwaysFetchSection"); _alreadyFetchedSection = info.GetBoolean("_alreadyFetchedSection"); _defaultSupportQueue = (SupportQueueEntity)info.GetValue("_defaultSupportQueue", typeof(SupportQueueEntity)); if(_defaultSupportQueue!=null) { _defaultSupportQueue.AfterSave+=new EventHandler(OnEntityAfterSave); } _defaultSupportQueueReturnsNewIfNotFound = info.GetBoolean("_defaultSupportQueueReturnsNewIfNotFound"); _alwaysFetchDefaultSupportQueue = info.GetBoolean("_alwaysFetchDefaultSupportQueue"); _alreadyFetchedDefaultSupportQueue = info.GetBoolean("_alreadyFetchedDefaultSupportQueue"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }