• 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);
    }
    }
    }

  • 相关阅读:
    [NOIP2015] D1T2 信息传递
    Codeforces #447 Div.2 Tutorial
    python进阶
    Vue入门
    python基础
    python介绍
    React笔记_(3)_react语法2
    React笔记_(2)_react语法1
    React笔记_(1)_react概述
    webpack笔记_(3)_First_Project
  • 原文地址:https://www.cnblogs.com/wugh8726254/p/14002586.html
Copyright © 2020-2023  润新知