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