weikebuluo.DAL/v_couponlog_dal.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using weikebuluo.DBUtility;
namespace weikebuluo.DAL
{
/// <summary>
/// 数据访问类:v_couponlog_dal
/// </summary>
public partial class v_couponlog_dal
{
DataCreator<weikebuluo.Model.v_couponlog_model> CreateSQL = new DataCreator<weikebuluo.Model.v_couponlog_model>();
public v_couponlog_dal()
{ }
#region 增加一条数据
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(weikebuluo.Model.v_couponlog_model model)
{
SqlParameter[] parameters = CreateSQL.CreateParameter(model);
string strSql = CreateSQL.CreateInsertSql(model, "v_couponlog", "couponlog_id") + ";select @@IDENTITY";
object obj = DbHelperSQL.GetSingle(strSql, parameters);
if (obj == null)
{
return 0;
}
else
{
return Convert.ToInt32(obj);
}
}
#endregion 增加一条数据
#region 更新一条数据
/// <summary>
/// 更新一条数据
/// </summary>
public bool Update(weikebuluo.Model.v_couponlog_model model)
{
SqlParameter[] parameters = CreateSQL.CreateParameter(model);
string strSql = CreateSQL.CreateUpdateSql(model, "v_couponlog", "couponlog_id", "couponlog_id=" + model.couponlog_id);
int rows = DbHelperSQL.ExecuteSql(strSql, parameters);
if (rows > 0)
{
return true;
}
else
后面还有 164 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
