From 68b6ded1eabfd61b30058546d4e0a4a22d542f43 Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Thu, 17 Jan 2019 13:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9ARoles=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E9=9B=86=E5=90=88?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.DataAccess/Role.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Bootstrap.DataAccess/Role.cs b/Bootstrap.DataAccess/Role.cs index 947a0ba7..ea681da5 100644 --- a/Bootstrap.DataAccess/Role.cs +++ b/Bootstrap.DataAccess/Role.cs @@ -76,6 +76,7 @@ namespace Bootstrap.DataAccess /// public virtual bool Delete(IEnumerable value) { + if (!value.Any()) return true; bool ret = false; var ids = string.Join(",", value); var db = DbManager.Create();