//获得用户所有未读的站内信5 Ok
        public List<Message> GetUserUreadPrivateSiteMessages(String UserID)
        {
            List<Message> PrivateSiteMessageList = new List<Message>();
            //数据访存器
            DatabaseAccess.DataClasses1DataContext DBAccessor = new DataClasses1DataContext();

            ISingleResult<getUnreadPrivateMessageByUserResult> resultList = DBAccessor.getUnreadPrivateMessageByUser(UserID);

            foreach (getUnreadPrivateMessageByUserResult result in resultList)
            {
                Message PrivateSiteMessage = new Message();
                PrivateSiteMessage.ID = result.id;
                PrivateSiteMessage.messageType = MessageType.PrivateMessage;
                PrivateSiteMessage.state = MessageState.Unread;
                PrivateSiteMessage.content = result.content;
                PrivateSiteMessage.userFrom.UserName = result.userfrom;//发信用户

                //发信用户的信息
                ISingleResult<getUserByUserNameResult> UserInfoList = DBAccessor.getUserByUserName(result.userfrom);
                foreach (getUserByUserNameResult UserInfo in UserInfoList)
                {
                    PrivateSiteMessage.userFrom.NickName = UserInfo.nickname;
                    PrivateSiteMessage.userFrom.Phone = UserInfo.phone;
                    PrivateSiteMessage.userFrom.Address = UserInfo.address;
                    PrivateSiteMessage.userFrom.Email = UserInfo.email;
                    PrivateSiteMessage.userFrom.City = UserInfo.city;
                    PrivateSiteMessage.userFrom.School = UserInfo.school;
                    PrivateSiteMessage.userFrom.Portrait = UserInfo.portraitPath;
                }

                PrivateSiteMessageList.Add(PrivateSiteMessage);
            }

            return PrivateSiteMessageList;
        }