ZhouliProject/Zhouli.BLL/Interface/IBaseBLL.cs

(完整代码) 865B

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Zhouli.BLL.Interface
{
    public interface IBaseBLL<T> where T : class, new()
    {
        bool Add(T t);
        bool AddRange(IEnumerable<T> t);
        bool Delete(T t);
        bool Delete(IEnumerable<T> t);
        bool Delete(Expression<Func<T, bool>> whereLambda);
        bool Update(T t);
        int GetCount(Expression<Func<T, bool>> whereLambda);
        //int ExecuteSql(string sql, SqlParameter parameter);
        //IEnumerable<T> SqlQuery(string sql);
        List<T> GetModels(Expression<Func<T, bool>> whereLambda);
        List<T> GetModelsByPage<type>(int pageSize, int pageIndex, bool isAsc, Expression<Func<T, type>> orderByLambda, Expression<Func<T, bool>> whereLambda);

    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。