📄 picturebll.cs
字号:
//------------------------------------*/
//版权所有:杭州商易信息技术有限公司
//功能描述:图片类
// 作者:沈伟
// 日期:2008/08/26
//------------------------------------*/
using System;
using System.Data;
using System.Text;
namespace Itsv.BLL.SystemManage
{
public class PictureBLL
{
private static readonly Itsv.DAL.SystemManage.PictureDAL dal = new Itsv.DAL.SystemManage.PictureDAL();
public PictureBLL()
{ }
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int pic_id)
{
return dal.Exists(pic_id);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(Itsv.Model.Picture model, ref string msg)
{
try
{
return dal.Add(model);
}
catch (Exception ex)
{
msg = ex.Message;
return 1;
}
}
/// <summary>
/// 更新一条数据
/// </summary>
public void Update(Itsv.Model.Picture model)
{
dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(int pic_id)
{
dal.Delete(pic_id);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public Itsv.Model.Picture GetModel(int pic_id)
{
return dal.GetModel(pic_id);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
#endregion 成员方法
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -