From 5f9f86663e9f1618a3364163bf016c471ae8c2af Mon Sep 17 00:00:00 2001 From: lihanbo Date: Wed, 16 Oct 2024 11:25:32 +0800 Subject: [PATCH] Update allow use GetAll --- LFlow/Interfaces/IRepo.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LFlow/Interfaces/IRepo.cs b/LFlow/Interfaces/IRepo.cs index b5a9e6f..1ba488b 100644 --- a/LFlow/Interfaces/IRepo.cs +++ b/LFlow/Interfaces/IRepo.cs @@ -20,13 +20,21 @@ public interface IRepo where T : IDataModel /// /// /// - T Delete(K id); + int Delete(K id); /// /// 保存与更新 /// /// /// T SaveOrUpdate(T entity, bool isUpdate); + /// + /// 获取所有对象列表(默认分页) + /// + /// + /// + /// + List GetAll(int pageIndex, int pageSize, ref int pageTotal); + /// /// 根据条件搜索对象列表 ///