Files
CleanMachine/CleanMachine.BLL/SYS/UserBLL.cs

114 lines
2.7 KiB
C#
Raw Normal View History

2022-05-05 18:01:29 +08:00
//模板信息:{"Template":{"Language":"C#"}}
2022-05-05 20:18:34 +08:00
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\UserBLL"}
2022-05-05 18:01:29 +08:00
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
2022-05-05 20:18:34 +08:00
using CleanMachine.DAL.SYS;
2022-05-05 18:01:29 +08:00
2022-05-05 20:18:34 +08:00
namespace CleanMachine.BLL.SYS
2022-05-05 18:01:29 +08:00
{
/// <summary>
///
/// </summary>
public class UserBLL
{
public UserBLL()
{
}
#region 一般方法
/// <summary>
/// 存在
/// </summary>
2022-05-05 20:18:34 +08:00
public bool Exists(int UserId)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().Exists(UserId);
}
/// <summary>
/// 添加一个数据
/// </summary>
2022-05-05 20:18:34 +08:00
public bool Add(CleanMachine.Model.SYS.User model)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().Add(model);
}
/// <summary>
/// 更新一个数据
/// </summary>
2022-05-05 20:18:34 +08:00
public bool Update(CleanMachine.Model.SYS.User model)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().Update(model);
}
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(string strWhere, object Params = null)
{
return new UserDAL().Delete(strWhere,Params);
}
/// <summary>
/// 删除一个数据
/// </summary>
2022-05-05 20:18:34 +08:00
public bool Delete(int UserId)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().Delete(UserId);
}
/// <summary>
/// 获得数据列表
/// </summary>
2022-05-05 20:18:34 +08:00
public IEnumerable<CleanMachine.Model.SYS.User> GetList(string strWhere, object Params = null)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().GetList(strWhere,Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
2022-05-05 20:18:34 +08:00
public CleanMachine.Model.SYS.User GetModel(int UserId)
2022-05-05 18:01:29 +08:00
{
return new UserDAL().GetModel(UserId);
}
#endregion
2022-05-05 20:18:34 +08:00
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(string UserCode)
{
return new UserDAL().Delete(UserCode);
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.SYS.User GetModel(string UserCode)
{
return new UserDAL().GetModel(UserCode);
}
/// <summary>
/// 存在
/// </summary>
public bool Exists(string UserCode)
{
return new UserDAL().Exists(UserCode);
}
2022-05-05 18:01:29 +08:00
/// <summary>
/// 查询数据
/// </summary>
2022-05-05 20:18:34 +08:00
// public IEnumerable<CleanMachine.Model.SYS.User> GetModelList(RuleGroup rule)
2022-05-05 18:01:29 +08:00
// {
// return new UserDAL().GetModelList(rule);
// }
}
}