From 7f9b93ab0e0cdf82f2e758d1234684fb4847bdbf Mon Sep 17 00:00:00 2001 From: renshuo Date: Mon, 7 Nov 2016 18:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AD=97=E5=85=B8=E8=A1=A8?= =?UTF-8?q?=E6=8C=89=E7=85=A7id=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Models/QueryDictOption.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Bootstrap.Admin/Models/QueryDictOption.cs b/Bootstrap.Admin/Models/QueryDictOption.cs index bc034c1e..e193e10b 100644 --- a/Bootstrap.Admin/Models/QueryDictOption.cs +++ b/Bootstrap.Admin/Models/QueryDictOption.cs @@ -42,9 +42,6 @@ namespace Bootstrap.Admin.Models // 通过option.Sort属性判断对那列进行排序 switch (Sort) { - case "ID": - data = Order == "asc" ? data.OrderBy(t => t.ID) : data.OrderByDescending(t => t.ID); - break; case "Category": data = Order == "asc" ? data.OrderBy(t => t.Category) : data.OrderByDescending(t => t.Category); break;