SQLServerDAL/ECustomer.cs
(开头部分) 53KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections.Generic;
using System.Data.SqlClient;
using WMPT.Model;
using WMPT.Common;
using WMPT.DBUtility;
namespace WMPT.SQLServerDAL
{
/// <summary>
/// 数据访问类EUser。
/// </summary>
public class ECustomer
{
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(WMPT.Model.ECustomerInfo model)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into ECustomer(");
strSql.Append("Name,TrueName,Sex,Tell,Phone,QQ,MSN,RegTime,Point,Picture,State,EMAIL ,password ,isActivate ,ActivateCode ,groupid , WebSite ,rid,userMoney,PhoneActivate,UC_ID)");
strSql.Append(" values (");
strSql.Append("@Name,@TrueName,@Sex,@Tell,@Phone,@QQ,@MSN,@RegTime,@Point,@Picture,@State,@EMAIL,@password ,@isActivate ,@ActivateCode , @groupid , @WebSite ,@rid,@userMoney,@PhoneActivate,@UC_ID);");
strSql.Append("SELECT @@IDENTITY;");
SqlParameter[] parameters =
{
new SqlParameter("@Name", SqlDbType.VarChar,256),
new SqlParameter("@TrueName", SqlDbType.VarChar,256),
new SqlParameter("@Sex", SqlDbType.VarChar ,1),
new SqlParameter("@Tell", SqlDbType.VarChar,20),
new SqlParameter("@Phone", SqlDbType.VarChar,20),
new SqlParameter("@QQ", SqlDbType.VarChar,20),
new SqlParameter("@MSN", SqlDbType.VarChar,256),
new SqlParameter("@RegTime", SqlDbType.DateTime),
new SqlParameter("@Point", SqlDbType.Int,4),
new SqlParameter("@Picture", SqlDbType.VarChar,256),
new SqlParameter("@State", SqlDbType.VarChar,10),
new SqlParameter("@EMAIL", SqlDbType.VarChar,30),
new SqlParameter("@password" , SqlDbType.VarChar , 50),
new SqlParameter("@isActivate" , SqlDbType.Int),
new SqlParameter("@ActivateCode" , SqlDbType.VarChar , 200),
new SqlParameter("@groupid" , SqlDbType.Int , 5),
new SqlParameter("@WebSite" , SqlDbType.VarChar , 50),
new SqlParameter("@rid" , SqlDbType.VarChar , 50),
new SqlParameter("@userMoney" , SqlDbType.Decimal),
new SqlParameter("@PhoneActivate" , SqlDbType.Int),
new SqlParameter("@UC_ID" , SqlDbType.Int),
};
parameters[0].Value = model.Name ;
parameters[1].Value = model.TrueName;
parameters[2].Value = model.Sex;
parameters[3].Value = model.Tell != null ? model.Tell : "";
parameters[4].Value = "";
parameters[5].Value = "";
后面还有 1113 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
