App_Code/DAL/newsbig.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;
using System.Data.OleDb;
using Maticsoft.DBUtility;//请先添加引用
namespace Maticsoft.DAL
{
/// <summary>
/// 数据访问类newsbig。
/// </summary>
public class newsbig
{
public static string connectionString = PubConstant.ConnectionString;
public newsbig()
{}
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int id)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select count(1) from newsbig");
strSql.Append(" where id="+id+" ");
return DbHelperOleDb.Exists(strSql.ToString());
}
/// <summary>
/// 增加一条数据
/// </summary>
public void Add(Maticsoft.Model.newsbig model)
{
StringBuilder strSql=new StringBuilder();
StringBuilder strSql1=new StringBuilder();
StringBuilder strSql2=new StringBuilder();
if (model.id != null)
{
strSql1.Append("id,");
strSql2.Append(""+model.id+",");
}
if (model.newsclass != null)
{
strSql1.Append("newsclass,");
strSql2.Append("'"+model.newsclass+"',");
}
if (model.newsid != null)
{
strSql1.Append("newsid,");
strSql2.Append(""+model.newsid+",");
后面还有 147 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。