通用版/HNTERP/HNTERPLibrary/Fhdbt.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Text;
using HNTERPDAO;
using System.Data;
namespace HNTERPLibrary
{
public class Fhdbt
{
private string _id;
public string Id
{
get { return _id; }
set { _id = value; }
}
private string _bt;
public string Bt
{
get { return _bt; }
set { _bt = value; }
}
private string _types;
public string Types
{
get { return _types; }
set { _types = value; }
}
/// <summary>
/// 更新一条数据
/// </summary>
public bool Update()
{
StringBuilder strSql = new StringBuilder();
strSql.Append("update [Fhdbt] set ");
strSql.Append("bt='" + Bt + "'");
strSql.Append(" where types='" + Types + "'");
CommonInterface pComm = CommonFactory.CreateInstance(CommonData.sql);
try
{
pComm.Execute(strSql.ToString());//执行Sql语句无返回值
pComm.Close();
return true;
}
catch (System.Exception e)
{
pComm.Close();
throw e;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
