From af3ce6d6254994b2d3596f3ef88ead574bef1c8f Mon Sep 17 00:00:00 2001
From: sunnian <853128958@qq.com>
Date: Fri, 28 Oct 2016 15:51:08 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?=
=?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BB=A5=E5=8F=8A=E4=BB=A3=E7=A0=81=E4=B8=AD?=
=?UTF-8?q?Category=E7=9A=84=E7=B1=BB=E5=9E=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Bootstrap.Admin/Models/QueryMenuOption.cs | 2 +-
Bootstrap.DataAccess/Menu.cs | 2 +-
Bootstrap.DataAccess/MenuHelper.cs | 2 +-
DatabaseScripts/Install.sql | 22 +++++++++++++++++++++-
4 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/Bootstrap.Admin/Models/QueryMenuOption.cs b/Bootstrap.Admin/Models/QueryMenuOption.cs
index 0afd0276..9eb21483 100644
--- a/Bootstrap.Admin/Models/QueryMenuOption.cs
+++ b/Bootstrap.Admin/Models/QueryMenuOption.cs
@@ -27,7 +27,7 @@ namespace Bootstrap.Admin.Models
}
if (!string.IsNullOrEmpty(Category))
{
- data = data.Where(t => t.Category.ToString().Equals(Category));
+ data = data.Where(t => t.Category.Contains(Category));
}
var ret = new QueryData