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