zoukankan      html  css  js  c++  java
  • mvc+dwz第五天

    封装XiaowuBLL类库

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Xiaowu.DAL;
    using Xiaowu.Model;
    using System.Linq.Expressions;
    namespace Xiaowu.BLL
    {
    public class wu_userBLL
    {
    wu_userDAL wu_userDAL = new wu_userDAL();


    public IQueryable<w_user> GetEntitysByStrwhere(Expression<Func<w_user, bool>> wherelambad)
    {
    return wu_userDAL.GetEntitys(wherelambad);
    }
    public int AddUser(w_user userinfo )
    {
    return wu_userDAL.Add(userinfo);
    }
    public int DeleteUser(int id)
    {
    return wu_userDAL.Delete(id);
    }
    public int UpdateUser(w_user userinfo)
    {
    return wu_userDAL.Update(userinfo);
    }

    public IQueryable<w_user> GetPageEntities<T_key>(int pageIndex, int pageSize, out int total, Expression<Func<w_user, bool>> wherelambad, Expression<Func<w_user, T_key>> OrderbyLambad, bool IsSort)
    {
    return wu_userDAL.GetPageEntities<T_key>(pageIndex, pageSize, out total, wherelambad, OrderbyLambad, IsSort);
    }
    }
    }

  • 相关阅读:
    抓取国家地区基础数据
    h264
    h.264
    vlc 推送rtsp视频流不能播放
    花生壳tcp内网端口映射
    make 安装时指定目录
    ubuntu安装vsftpd
    vsftpd命令
    vim删除某一列
    linux打开防火墙
  • 原文地址:https://www.cnblogs.com/wugh8726254/p/14002586.html
Copyright © 2011-2022 走看看