//模板信息:{"Template":{"Language":"C#"}} //输出信息:{"Extension":".cs","FileName":"BLL\\WarningBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; using CleanMachine.DAL; namespace CleanMachine.BLL { /// /// /// public class WarningBLL { public WarningBLL() { } #region 一般方法 /// /// 存在 /// public bool Exists(string WarningId) { return new WarningDAL().Exists(WarningId); } /// /// 添加一个数据 /// public bool Add(CleanMachine.Model.Warning model) { return new WarningDAL().Add(model); } /// /// 更新一个数据 /// public bool Update(CleanMachine.Model.Warning model) { return new WarningDAL().Update(model); } /// /// 删除一个数据 /// public bool Delete(string strWhere, object Params = null) { return new WarningDAL().Delete(strWhere,Params); } /// /// 删除一个数据 /// public bool Delete(string WarningId) { return new WarningDAL().Delete(WarningId); } /// /// 获得数据列表 /// public IEnumerable GetList(string strWhere, object Params = null) { return new WarningDAL().GetList(strWhere,Params); } /// /// 获取一个对象 /// public CleanMachine.Model.Warning GetModel(string WarningId) { return new WarningDAL().GetModel(WarningId); } #endregion /// /// 查询数据 /// // public IEnumerable GetModelList(RuleGroup rule) // { // return new WarningDAL().GetModelList(rule); // } } }