LK.WXAD.Dals/UserInfo.cs
(开头部分) 24KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Microsoft.ApplicationBlocks.Data;
using System.Web;
namespace LK.WXAD.Dals
{
/// <summary>
/// 数据访问类:UserInfo
/// </summary>
public partial class UserInfo
{
public string sqlConnectionString = LK.WXAD.SqlConn.SqlConn.SqlConnectionString();
public UserInfo()
{}
#region BasicMethod
/// <summary>
/// 得到最大ID
/// </summary>
public int GetMaxId()
{
return new GetMaxID().GetID("UserID", "LK_UserInfo");
}
/// <summary>
/// 修改密码
/// </summary>
/// <param name="UserMobile"></param>
/// <param name="UserPwd"></param>
/// <returns></returns>
public bool EditUserPwd(string UserMobile, string UserPwd)
{
//UserMobile = @UserMobile and UserPwd = @UserPwd"
StringBuilder strSql = new StringBuilder();
strSql.Append("update LK_UserInfo set ");
strSql.Append("UserPwd=@UserPwd");
strSql.Append(" where UserMobile=@UserMobile");
SqlParameter[] parameters = {
new SqlParameter("@UserPwd", SqlDbType.NVarChar,50),
new SqlParameter("@UserMobile", SqlDbType.NVarChar,20)
};
parameters[0].Value = UserPwd;
parameters[1].Value = UserMobile;
int rows = SqlHelper.ExecuteNonQuery(sqlConnectionString, CommandType.Text, strSql.ToString(), parameters);
if (rows > 0)
{
return true;
}
else
{
后面还有 716 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
