From 7ca7c5877fd56a5b13ab54d0d282a40f34093404 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Mon, 6 Jul 2020 15:19:59 +0800 Subject: [PATCH] update Former-commit-id: 75dca9c1932a9fe81d59bc7911f8cdf04f1c3ffe Former-commit-id: 23e5048af20e7eb6b13f91a7125ebfc8f5c6cbb1 --- .../Infrastructure/Areas/Admin/Views/Setting/Index.cshtml | 2 +- .../Views/Shared/EditorTemplates/Search.cshtml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml b/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml index 3138e32d..79aaaff4 100644 --- a/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml +++ b/projects/Infrastructure/Areas/Admin/Views/Setting/Index.cshtml @@ -1,6 +1,6 @@ @using Infrastructure.Application.Entites.Settings @using System.Security.Claims -@model PagedList +@model PagedList @{ HtmlTitle = "配置"; var start = 0; diff --git a/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml b/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml index b53f4caf..e7c90321 100644 --- a/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml +++ b/projects/Infrastructure/Views/Shared/EditorTemplates/Search.cshtml @@ -5,6 +5,11 @@
@foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForEdit).Where(o => o.PropertyName != "Capacity" && o.PropertyName != "Count")) { + if (prop.PropertyName == "Query" || prop.PropertyName == "Schema" || prop.PropertyName == "ViewData") + { + continue; + } +
@prop.PropertyName
if (prop.HideSurroundingHtml) { @Html.Hidden(prop.PropertyName)