码迷,mamicode.com
首页 > Web开发 > 详细

ASP.NET 业务逻辑层用户列表的各种操作封装

时间:2016-11-28 12:56:39      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:test   bool   space   one   class   name   .net   linq   列表   

用户列表的业务逻辑层代码的封装

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CZBK.TestProject.Model;

namespace CZBK.TestProject.BLL
{
public class EmployeeService
{
DAL.EmployeeDal EmployeeDal = new DAL.EmployeeDal();
public List<Employee> GetEntityList()
{
return EmployeeDal.GetEntityList();
}

public bool DeleteEntity(int id)
{
return EmployeeDal.DeleteEmployee(id)>0;
}

public Employee GetOne(int id)
{
return EmployeeDal.GetEntityModel(id);
}

public bool update(Employee em)
{
return EmployeeDal.UpdateEmployee(em)>0;
}
}
}

ASP.NET 业务逻辑层用户列表的各种操作封装

标签:test   bool   space   one   class   name   .net   linq   列表   

原文地址:http://www.cnblogs.com/zhaodachao/p/6109004.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!