コード例 #1
0
        public IUserBase LoginForSession(string uid, string pwd)
        {
            var encryptPwd = CommonUtilities.Encrypt(pwd);
            var user       = new ERUserEntity {
                UserID = uid, Password = encryptPwd
            };

            DataAccessManager.ExecuteCommand("GetUserByIDAndPassword", cmd =>
            {
                using (var reader = cmd.ExecuteDataReader(user))
                {
                    reader.Read();
                    user.Build(reader);
                }
            });
            return(user);
        }
コード例 #2
0
 public string OperationUserPoints(ERUserEntity entity, string operationType)
 {
     return(OperationInvoke("OperationUserPoints", entity, operationType) != 0 ? entity.UserID : string.Empty);
 }