/*********************************************************************** * Project: baifenBinfa * ProjectName: 百分兵法管理系统 * Web: http://chuanyin.com * Author: * Email: * CreateTime: 2024/5/7 16:00:53 * Description: 暂无 ***********************************************************************/ using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; using CoreCms.Net.Model.Entities; using CoreCms.Net.Model.ViewModels.Basics; using CoreCms.Net.Model.ViewModels.UI; using SqlSugar; namespace CoreCms.Net.IServices { /// /// 货品表 服务工厂接口 /// public interface ICoreCmsbaifenProductsServices : IBaseServices { #region 重写增删改查操作=========================================================== /// /// 重写异步插入方法 /// /// /// Task InsertAsync(CoreCmsProducts entity); /// /// 重写异步更新方法 /// /// /// Task UpdateAsync(CoreCmsProducts entity); /// /// 重写异步更新方法 /// /// /// Task UpdateAsync(List entity); /// /// 重写删除指定ID的数据 /// /// /// Task DeleteByIdAsync(object id); /// /// 重写删除指定ID集合的数据(批量删除) /// /// /// Task DeleteByIdsAsync(int[] ids); #endregion #region 获取缓存的所有数据========================================================== /// /// 获取缓存的所有数据 /// /// Task> GetCaChe(); #endregion #region 重写根据条件查询分页数据 /// /// 重写根据条件查询分页数据 /// /// 判断集合 /// 排序方式 /// 当前页面索引 /// 分布大小 /// /// 是否使用WITH(NOLOCK) /// Task> QueryPageAsync( Expression> predicate, Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, int pageSize = 20, bool blUseNoLock = false); #endregion /// /// 获取关联商品的货品列表数据 /// /// 判断集合 /// 排序方式 /// 当前页面索引 /// 分布大小 /// /// 是否使用WITH(NOLOCK) /// Task> QueryDetailPageAsync(Expression> predicate, Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, int pageSize = 20, bool blUseNoLock = false); /// /// 获取关联商品的货品列表数据 /// /// 判断集合 /// 排序方式 /// /// 是否使用WITH(NOLOCK) /// public Task> QueryDetaiListAsync(Expression> predicate, Expression> orderByExpression, OrderByType orderByType, bool blUseNoLock = false); } }