Exemple #1
0
        /// <summary>
        /// 将EditModel转换成User
        /// </summary>
        /// <returns></returns>
        public User AsUser()
        {
            User user = User.New();

            user.UserName = UserName;
            user.Password = Password;
            return(user);
        }
Exemple #2
0
        /// <summary>
        /// 转换为User用于数据库存储
        /// </summary>
        public User AsUser()
        {
            User user = User.New();

            user.AccountEmail = this.AccountEmail;
            user.UserName     = this.UserName;

            return(user);
        }
Exemple #3
0
        /// <summary>
        /// 转换成数据保存的User对象
        /// </summary>
        /// <returns></returns>
        internal User AsUser()
        {
            User user = User.New();

            user.UserId       = IdGenerator.Next();
            user.UserName     = this.UserName;
            user.Password     = this.PassWord;
            user.AccountEmail = this.AccountEmail;

            return(user);
        }
Exemple #4
0
        /// <summary>
        /// 转换成User
        /// </summary>
        /// <returns></returns>
        public User AsUser()
        {
            User user = User.New();

            user.UserName     = UserName;
            user.Password     = Password;
            user.AccountEmail = AccountEmail;

            user.NickName = NickName;

            user.Rank = 1;
            return(user);
        }