SQLServerDAL/TogoLogin.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// TogoLogin.cs
// CopyRight (c) 2009-2011 HangJing Teconology. All Rights Reserved.
// 123@163.com.com
// 2011-05-06
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WMPT.Model;
using WMPT.Common;
using WMPT.DBUtility;
using System.Data.SqlClient;
namespace WMPT.SQLServerDAL
{
public class TogoLogin
{
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(TogoLoginInfo model)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into ETogoLogin(");
strSql.Append("TogoAccount,TogoPassword,TogoNum,LastLoginTime,LastLoginIp,LoginTimes,LastAction,UserAccountStatus)");
strSql.Append(" values (");
strSql.Append("@TogoAccount,@TogoPassword,@TogoNum,@LastLoginTime,@LastLoginIp,@LoginTimes,@LastAction,@UserAccountStatus)");
SqlParameter[] parameters =
{
new SqlParameter("@TogoAccount", SqlDbType.VarChar,50),
new SqlParameter("@TogoPassword", SqlDbType.VarChar,50),
new SqlParameter("@TogoNum", SqlDbType.Int,4),
new SqlParameter("@LastLoginTime", SqlDbType.DateTime),
new SqlParameter("@LastLoginIp", SqlDbType.VarChar,50),
new SqlParameter("@LoginTimes", SqlDbType.Int,4),
new SqlParameter("@LastAction", SqlDbType.VarChar,1024),
new SqlParameter("@UserAccountStatus", SqlDbType.Int,4)
};
parameters[0].Value = model.TogoAccount;
parameters[1].Value = model.TogoPassword;
parameters[2].Value = model.TogoNum;
parameters[3].Value = model.LastLoginTime;
parameters[4].Value = model.LastLoginIp;
parameters[5].Value = model.LoginTimes;
parameters[6].Value = model.LastAction;
parameters[7].Value = model.UserAccountStatus;
return SQLHelper.ExecuteNonQuery(CommandType.Text, strSql.ToString(), parameters);
}
/// <summary>
/// 更新一条数据
/// </summary>
public int Update(TogoLoginInfo model)
{
后面还有 167 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
