修改模型
This commit is contained in:
91
CleanMachine.BLL/SYS/LogBLL.cs
Normal file
91
CleanMachine.BLL/SYS/LogBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LogBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LogBLL
|
||||
{
|
||||
|
||||
public LogBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int SysLogId)
|
||||
{
|
||||
return new LogDAL().Exists(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Log model)
|
||||
{
|
||||
return new LogDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Log model)
|
||||
{
|
||||
return new LogDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new LogDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int SysLogId)
|
||||
{
|
||||
return new LogDAL().Delete(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Log> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LogDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Log GetModel(int SysLogId)
|
||||
{
|
||||
return new LogDAL().GetModel(SysLogId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Log> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LogDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user