コード例 #1
0
ファイル: RoleEntityBase.cs プロジェクト: priaonehaha/HnD
        /// <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();
        }
コード例 #2
0
ファイル: UserEntityBase.cs プロジェクト: priaonehaha/HnD
        /// <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();
        }