Пример #1
0
        /// <summary>
        /// 通过用户LoginID获取用户
        /// </summary>
        /// <param name="loginID"></param>
        /// <returns></returns>
        public SystemUserWrapper GetInitalUserByLoginID(string loginID)
        {
            SystemUserEntity user = this.DataObjectsContainerIocID.SystemUserDataObjectInstance.GetUserByLoginID(loginID);

            this.DataObjectsContainerIocID.SystemUserDataObjectInstance.InitializeLazyProperties(user);
            return(SystemUserWrapper.ConvertEntityToWrapper(user));
        }
Пример #2
0
        /// <summary>
        /// 通过登录ID和密码获取用户
        /// </summary>
        /// <param name="loginID">登录ID</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        public SystemUserWrapper GetUserByLoginIdAndPassword(string loginID, string password)
        {
            SystemUserEntity findUser = this.SelfDataObj.GetUserByLoginIDAndPassword(loginID, password);

            if ((findUser != null) && findUser.UserPassword.Equals(password))
            {
                return(SystemUserWrapper.ConvertEntityToWrapper(findUser));
            }
            return(null);
        }
Пример #3
0
 /// <summary>
 /// 通过登录ID获取用户
 /// </summary>
 /// <param name="loginID"></param>
 /// <returns></returns>
 public SystemUserWrapper GetUserByLoginId(string loginID)
 {
     return(SystemUserWrapper.ConvertEntityToWrapper(this.DataObjectsContainerIocID.SystemUserDataObjectInstance.GetUserByLoginID(loginID)));
 }
Пример #4
0
 /// <summary>
 /// 通过Email获取用户
 /// </summary>
 /// <param name="email"></param>
 /// <returns></returns>
 public SystemUserWrapper GetUserByEmail(string email)
 {
     return(SystemUserWrapper.ConvertEntityToWrapper(this.DataObjectsContainerIocID.SystemUserDataObjectInstance.GetUserByEmail(email)));
 }