From b6d759d1f8a6b9b23b8c48226dd1f12a6c4cfa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 10 Feb 2022 22:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E8=BD=BD=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Repository/BaseRepository.cs | 4 ++++ ZR.Repository/IBaseRepository.cs | 2 +- ZR.Service/BaseService.cs | 8 ++++++++ ZR.Service/IBaseService.cs | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ZR.Repository/BaseRepository.cs b/ZR.Repository/BaseRepository.cs index 933e124..60134e1 100644 --- a/ZR.Repository/BaseRepository.cs +++ b/ZR.Repository/BaseRepository.cs @@ -211,6 +211,10 @@ namespace ZR.Repository } #region delete + public IDeleteable Deleteable() + { + return Context.Deleteable(); + } /// /// 删除表达式 diff --git a/ZR.Repository/IBaseRepository.cs b/ZR.Repository/IBaseRepository.cs index f1ca3d0..96d7807 100644 --- a/ZR.Repository/IBaseRepository.cs +++ b/ZR.Repository/IBaseRepository.cs @@ -69,7 +69,7 @@ namespace ZR.Repository bool UseTran2(Action action); #region delete - + IDeleteable Deleteable(); int Delete(Expression> expression); int Delete(object[] obj); int Delete(object id); diff --git a/ZR.Service/BaseService.cs b/ZR.Service/BaseService.cs index bf3e927..8dd85de 100644 --- a/ZR.Service/BaseService.cs +++ b/ZR.Service/BaseService.cs @@ -211,6 +211,14 @@ namespace ZR.Service #region delete + /// + /// 删除 + /// + /// + public IDeleteable Deleteable() + { + return baseRepository.Deleteable(); + } /// /// 删除表达式 /// diff --git a/ZR.Service/IBaseService.cs b/ZR.Service/IBaseService.cs index 569e101..81143cd 100644 --- a/ZR.Service/IBaseService.cs +++ b/ZR.Service/IBaseService.cs @@ -81,7 +81,7 @@ namespace ZR.Service bool UseTran2(Action action); #region delete - + IDeleteable Deleteable(); int Delete(Expression> expression); int Delete(object[] obj); int Delete(object id);