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