From f8a8644bad6879158f654660f9a052a83788b4b3 Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Sun, 24 Feb 2019 19:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9AGr?= =?UTF-8?q?oup=E7=B1=BB=E9=87=8D=E6=9E=84=E4=BC=98=E5=8C=96=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.DataAccess/Group.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.DataAccess/Group.cs b/Bootstrap.DataAccess/Group.cs index 0e689286..031ac86e 100644 --- a/Bootstrap.DataAccess/Group.cs +++ b/Bootstrap.DataAccess/Group.cs @@ -94,7 +94,7 @@ namespace Bootstrap.DataAccess public virtual IEnumerable RetrievesByRoleId(string roleId) { var db = DbManager.Create(); - return DbManager.Create().Fetch($"select g.ID, g.GroupName, g.Description, case rg.GroupID when g.ID then 'checked' else '' end Checked from {db.Provider.EscapeSqlIdentifier("Groups")} g left join RoleGroup rg on g.ID = rg.GroupID and RoleID = @0", roleId); + return db.Fetch($"select g.ID, g.GroupName, g.Description, case rg.GroupID when g.ID then 'checked' else '' end Checked from {db.Provider.EscapeSqlIdentifier("Groups")} g left join RoleGroup rg on g.ID = rg.GroupID and RoleID = @0", roleId); } ///