Exemplo n.º 1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _auditDataCore = new SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection();
            _auditDataCore.SetContainingEntityInfo(this, "AuditAction");

            _roleAuditActions = new SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection();
            _roleAuditActions.SetContainingEntityInfo(this, "AuditAction");
            _rolesWithAuditAction = new SD.HnD.DAL.CollectionClasses.RoleCollection();
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Exemplo n.º 2
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected AuditActionEntityBase(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _auditDataCore               = (SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection)info.GetValue("_auditDataCore", typeof(SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection));
            _alwaysFetchAuditDataCore    = info.GetBoolean("_alwaysFetchAuditDataCore");
            _alreadyFetchedAuditDataCore = info.GetBoolean("_alreadyFetchedAuditDataCore");

            _roleAuditActions                   = (SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection)info.GetValue("_roleAuditActions", typeof(SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection));
            _alwaysFetchRoleAuditActions        = info.GetBoolean("_alwaysFetchRoleAuditActions");
            _alreadyFetchedRoleAuditActions     = info.GetBoolean("_alreadyFetchedRoleAuditActions");
            _rolesWithAuditAction               = (SD.HnD.DAL.CollectionClasses.RoleCollection)info.GetValue("_rolesWithAuditAction", typeof(SD.HnD.DAL.CollectionClasses.RoleCollection));
            _alwaysFetchRolesWithAuditAction    = info.GetBoolean("_alwaysFetchRolesWithAuditAction");
            _alreadyFetchedRolesWithAuditAction = info.GetBoolean("_alreadyFetchedRolesWithAuditAction");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Exemplo n.º 3
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _forumRoleForumActionRights = new SD.HnD.DAL.CollectionClasses.ForumRoleForumActionRightCollection();
            _forumRoleForumActionRights.SetContainingEntityInfo(this, "ActionRight");

            _roleSystemActionRights = new SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection();
            _roleSystemActionRights.SetContainingEntityInfo(this, "ActionRight");
            _systemRightAssignedToRoles = new SD.HnD.DAL.CollectionClasses.RoleCollection();
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Exemplo n.º 4
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected ActionRightEntityBase(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");

            _roleSystemActionRights = (SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection)info.GetValue("_roleSystemActionRights", typeof(SD.HnD.DAL.CollectionClasses.RoleSystemActionRightCollection));
            _alwaysFetchRoleSystemActionRights = info.GetBoolean("_alwaysFetchRoleSystemActionRights");
            _alreadyFetchedRoleSystemActionRights = info.GetBoolean("_alreadyFetchedRoleSystemActionRights");
            _systemRightAssignedToRoles = (SD.HnD.DAL.CollectionClasses.RoleCollection)info.GetValue("_systemRightAssignedToRoles", typeof(SD.HnD.DAL.CollectionClasses.RoleCollection));
            _alwaysFetchSystemRightAssignedToRoles = info.GetBoolean("_alwaysFetchSystemRightAssignedToRoles");
            _alreadyFetchedSystemRightAssignedToRoles = info.GetBoolean("_alreadyFetchedSystemRightAssignedToRoles");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Exemplo n.º 5
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _loggedAudits = new SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection();
            _loggedAudits.SetContainingEntityInfo(this, "UserAudited");

            _bookmarks = new SD.HnD.DAL.CollectionClasses.BookmarkCollection();
            _bookmarks.SetContainingEntityInfo(this, "User");

            _iPBansSet = new SD.HnD.DAL.CollectionClasses.IPBanCollection();
            _iPBansSet.SetContainingEntityInfo(this, "SetByUser");

            _postedMessages = new SD.HnD.DAL.CollectionClasses.MessageCollection();
            _postedMessages.SetContainingEntityInfo(this, "PostedByUser");

            _roleUser = new SD.HnD.DAL.CollectionClasses.RoleUserCollection();
            _roleUser.SetContainingEntityInfo(this, "User");

            _supportQueueThreadsClaimed = new SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection();
            _supportQueueThreadsClaimed.SetContainingEntityInfo(this, "ClaimedByUser");

            _supportQueueThreadsPlaced = new SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection();
            _supportQueueThreadsPlaced.SetContainingEntityInfo(this, "PlacedInQueueByUser");

            _startedThreads = new SD.HnD.DAL.CollectionClasses.ThreadCollection();
            _startedThreads.SetContainingEntityInfo(this, "UserWhoStartedThread");

            _threadSubscription = new SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection();
            _threadSubscription.SetContainingEntityInfo(this, "User");
            _startedThreadsInForums = new SD.HnD.DAL.CollectionClasses.ForumCollection();
            _roles = new SD.HnD.DAL.CollectionClasses.RoleCollection();
            _threadsInBookmarks = new SD.HnD.DAL.CollectionClasses.ThreadCollection();
            _postedMessagesInThreads = new SD.HnD.DAL.CollectionClasses.ThreadCollection();
            _threadCollectionViaThreadSubscription = new SD.HnD.DAL.CollectionClasses.ThreadCollection();
            _userTitleReturnsNewIfNotFound = true;
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Exemplo n.º 6
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected UserEntityBase(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _loggedAudits = (SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection)info.GetValue("_loggedAudits", typeof(SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection));
            _alwaysFetchLoggedAudits = info.GetBoolean("_alwaysFetchLoggedAudits");
            _alreadyFetchedLoggedAudits = info.GetBoolean("_alreadyFetchedLoggedAudits");

            _bookmarks = (SD.HnD.DAL.CollectionClasses.BookmarkCollection)info.GetValue("_bookmarks", typeof(SD.HnD.DAL.CollectionClasses.BookmarkCollection));
            _alwaysFetchBookmarks = info.GetBoolean("_alwaysFetchBookmarks");
            _alreadyFetchedBookmarks = info.GetBoolean("_alreadyFetchedBookmarks");

            _iPBansSet = (SD.HnD.DAL.CollectionClasses.IPBanCollection)info.GetValue("_iPBansSet", typeof(SD.HnD.DAL.CollectionClasses.IPBanCollection));
            _alwaysFetchIPBansSet = info.GetBoolean("_alwaysFetchIPBansSet");
            _alreadyFetchedIPBansSet = info.GetBoolean("_alreadyFetchedIPBansSet");

            _postedMessages = (SD.HnD.DAL.CollectionClasses.MessageCollection)info.GetValue("_postedMessages", typeof(SD.HnD.DAL.CollectionClasses.MessageCollection));
            _alwaysFetchPostedMessages = info.GetBoolean("_alwaysFetchPostedMessages");
            _alreadyFetchedPostedMessages = info.GetBoolean("_alreadyFetchedPostedMessages");

            _roleUser = (SD.HnD.DAL.CollectionClasses.RoleUserCollection)info.GetValue("_roleUser", typeof(SD.HnD.DAL.CollectionClasses.RoleUserCollection));
            _alwaysFetchRoleUser = info.GetBoolean("_alwaysFetchRoleUser");
            _alreadyFetchedRoleUser = info.GetBoolean("_alreadyFetchedRoleUser");

            _supportQueueThreadsClaimed = (SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection)info.GetValue("_supportQueueThreadsClaimed", typeof(SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection));
            _alwaysFetchSupportQueueThreadsClaimed = info.GetBoolean("_alwaysFetchSupportQueueThreadsClaimed");
            _alreadyFetchedSupportQueueThreadsClaimed = info.GetBoolean("_alreadyFetchedSupportQueueThreadsClaimed");

            _supportQueueThreadsPlaced = (SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection)info.GetValue("_supportQueueThreadsPlaced", typeof(SD.HnD.DAL.CollectionClasses.SupportQueueThreadCollection));
            _alwaysFetchSupportQueueThreadsPlaced = info.GetBoolean("_alwaysFetchSupportQueueThreadsPlaced");
            _alreadyFetchedSupportQueueThreadsPlaced = info.GetBoolean("_alreadyFetchedSupportQueueThreadsPlaced");

            _startedThreads = (SD.HnD.DAL.CollectionClasses.ThreadCollection)info.GetValue("_startedThreads", typeof(SD.HnD.DAL.CollectionClasses.ThreadCollection));
            _alwaysFetchStartedThreads = info.GetBoolean("_alwaysFetchStartedThreads");
            _alreadyFetchedStartedThreads = info.GetBoolean("_alreadyFetchedStartedThreads");

            _threadSubscription = (SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection)info.GetValue("_threadSubscription", typeof(SD.HnD.DAL.CollectionClasses.ThreadSubscriptionCollection));
            _alwaysFetchThreadSubscription = info.GetBoolean("_alwaysFetchThreadSubscription");
            _alreadyFetchedThreadSubscription = info.GetBoolean("_alreadyFetchedThreadSubscription");
            _startedThreadsInForums = (SD.HnD.DAL.CollectionClasses.ForumCollection)info.GetValue("_startedThreadsInForums", typeof(SD.HnD.DAL.CollectionClasses.ForumCollection));
            _alwaysFetchStartedThreadsInForums = info.GetBoolean("_alwaysFetchStartedThreadsInForums");
            _alreadyFetchedStartedThreadsInForums = info.GetBoolean("_alreadyFetchedStartedThreadsInForums");

            _roles = (SD.HnD.DAL.CollectionClasses.RoleCollection)info.GetValue("_roles", typeof(SD.HnD.DAL.CollectionClasses.RoleCollection));
            _alwaysFetchRoles = info.GetBoolean("_alwaysFetchRoles");
            _alreadyFetchedRoles = info.GetBoolean("_alreadyFetchedRoles");

            _threadsInBookmarks = (SD.HnD.DAL.CollectionClasses.ThreadCollection)info.GetValue("_threadsInBookmarks", typeof(SD.HnD.DAL.CollectionClasses.ThreadCollection));
            _alwaysFetchThreadsInBookmarks = info.GetBoolean("_alwaysFetchThreadsInBookmarks");
            _alreadyFetchedThreadsInBookmarks = info.GetBoolean("_alreadyFetchedThreadsInBookmarks");

            _postedMessagesInThreads = (SD.HnD.DAL.CollectionClasses.ThreadCollection)info.GetValue("_postedMessagesInThreads", typeof(SD.HnD.DAL.CollectionClasses.ThreadCollection));
            _alwaysFetchPostedMessagesInThreads = info.GetBoolean("_alwaysFetchPostedMessagesInThreads");
            _alreadyFetchedPostedMessagesInThreads = info.GetBoolean("_alreadyFetchedPostedMessagesInThreads");

            _threadCollectionViaThreadSubscription = (SD.HnD.DAL.CollectionClasses.ThreadCollection)info.GetValue("_threadCollectionViaThreadSubscription", typeof(SD.HnD.DAL.CollectionClasses.ThreadCollection));
            _alwaysFetchThreadCollectionViaThreadSubscription = info.GetBoolean("_alwaysFetchThreadCollectionViaThreadSubscription");
            _alreadyFetchedThreadCollectionViaThreadSubscription = info.GetBoolean("_alreadyFetchedThreadCollectionViaThreadSubscription");
            _userTitle = (UserTitleEntity)info.GetValue("_userTitle", typeof(UserTitleEntity));
            if(_userTitle!=null)
            {
                _userTitle.AfterSave+=new EventHandler(OnEntityAfterSave);
            }
            _userTitleReturnsNewIfNotFound = info.GetBoolean("_userTitleReturnsNewIfNotFound");
            _alwaysFetchUserTitle = info.GetBoolean("_alwaysFetchUserTitle");
            _alreadyFetchedUserTitle = info.GetBoolean("_alreadyFetchedUserTitle");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Exemplo n.º 7
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _auditDataCore = new SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection();
            _auditDataCore.SetContainingEntityInfo(this, "AuditAction");

            _roleAuditActions = new SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection();
            _roleAuditActions.SetContainingEntityInfo(this, "AuditAction");
            _rolesWithAuditAction = new SD.HnD.DAL.CollectionClasses.RoleCollection();
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Exemplo n.º 8
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected AuditActionEntityBase(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _auditDataCore = (SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection)info.GetValue("_auditDataCore", typeof(SD.HnD.DAL.CollectionClasses.AuditDataCoreCollection));
            _alwaysFetchAuditDataCore = info.GetBoolean("_alwaysFetchAuditDataCore");
            _alreadyFetchedAuditDataCore = info.GetBoolean("_alreadyFetchedAuditDataCore");

            _roleAuditActions = (SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection)info.GetValue("_roleAuditActions", typeof(SD.HnD.DAL.CollectionClasses.RoleAuditActionCollection));
            _alwaysFetchRoleAuditActions = info.GetBoolean("_alwaysFetchRoleAuditActions");
            _alreadyFetchedRoleAuditActions = info.GetBoolean("_alreadyFetchedRoleAuditActions");
            _rolesWithAuditAction = (SD.HnD.DAL.CollectionClasses.RoleCollection)info.GetValue("_rolesWithAuditAction", typeof(SD.HnD.DAL.CollectionClasses.RoleCollection));
            _alwaysFetchRolesWithAuditAction = info.GetBoolean("_alwaysFetchRolesWithAuditAction");
            _alreadyFetchedRolesWithAuditAction = info.GetBoolean("_alreadyFetchedRolesWithAuditAction");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }