App_Code/DAL/PositionInfo.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace KEPX.DAL
{
/// <summary>
/// 数据访问类:PositionInfo
/// </summary>
public partial class PositionInfo
{
public PositionInfo()
{ }
#region Method
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(KEPX.Model.PositionInfo model)
{
StringBuilder strSql = new StringBuilder();
StringBuilder strSql1 = new StringBuilder();
StringBuilder strSql2 = new StringBuilder();
if (model.title != null)
{
strSql1.Append("title,");
strSql2.Append("'" + model.title + "',");
}
if (model.positionInfo != null)
{
strSql1.Append("positionInfo,");
strSql2.Append("'" + model.positionInfo + "',");
}
if (model.fbCompany != null)
{
strSql1.Append("fbCompany,");
strSql2.Append("'" + model.fbCompany + "',");
}
if (model.insertdate != null)
{
strSql1.Append("insertdate,");
strSql2.Append("'" + model.insertdate + "',");
}
strSql.Append("insert into PositionInfo(");
strSql.Append(strSql1.ToString().Remove(strSql1.Length - 1));
strSql.Append(")");
strSql.Append(" values (");
strSql.Append(strSql2.ToString().Remove(strSql2.Length - 1));
strSql.Append(")");
strSql.Append(";select @@IDENTITY");
object obj = DbHelperSQL.GetSingle(strSql.ToString());
if (obj == null)
{
return 0;
}
else
{
return Convert.ToInt32(obj);
后面还有 224 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
