DAL/UserMotherInfoService.cs
(开头部分) 24KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
namespace DAL
{
/// <summary>
/// 数据访问类:UserMotherInfoService
/// </summary>
public partial class UserMotherInfoService
{
public UserMotherInfoService()
{}
#region BasicMethod
/// <summary>
/// 得到一个对象实体
/// </summary>
public static Model.UserMotherInfo GetModelByUserId(int userId)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select top 1 id,userId,realName,isCreditName,isCreditCertificate,bodyCode,nicheng,bodyHeight,bodyWeight,workTypeId,ageAreaId,experienceId,experience,priceAreaId,priceArea,shuXiangId,starId,eduId,doWellId,languageId,age,nation,maxEdu,qq,mobile,email,workWell,familyPid,familyCid,familyAddress,livePid,liveCid,liveAddress,serverPid,serverCid,serverAddress,serverTime,selfInfo,status,remark,addTime,infoType from UserMotherInfo ");
strSql.Append(" where userId=@userId");
SqlParameter[] parameters = {
new SqlParameter("@userId", SqlDbType.Int,4)
};
parameters[0].Value = userId;
Model.UserMotherInfo model = new Model.UserMotherInfo();
DataSet ds = DBHelperSQL.Query(strSql.ToString(), parameters);
if (ds.Tables[0].Rows.Count > 0)
{
return DataRowToModel(ds.Tables[0].Rows[0]);
}
else
{
return null;
}
}
/// <summary>
/// 是否存在该记录
/// </summary>
public static bool Exists(int userId)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select count(1) from UserMotherInfo");
strSql.Append(" where userId=@userId");
SqlParameter[] parameters = {
new SqlParameter("@userId", SqlDbType.Int,4)
};
parameters[0].Value = userId;
return DBHelperSQL.Exists(strSql.ToString(),parameters);
}
/// <summary>
后面还有 613 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。