删除字典表按照id排序

This commit is contained in:
renshuo 2016-11-07 18:32:17 +08:00
parent ca3f29cafb
commit 7f9b93ab0e
1 changed files with 0 additions and 3 deletions

View File

@ -42,9 +42,6 @@ namespace Bootstrap.Admin.Models
// 通过option.Sort属性判断对那列进行排序 // 通过option.Sort属性判断对那列进行排序
switch (Sort) switch (Sort)
{ {
case "ID":
data = Order == "asc" ? data.OrderBy(t => t.ID) : data.OrderByDescending(t => t.ID);
break;
case "Category": case "Category":
data = Order == "asc" ? data.OrderBy(t => t.Category) : data.OrderByDescending(t => t.Category); data = Order == "asc" ? data.OrderBy(t => t.Category) : data.OrderByDescending(t => t.Category);
break; break;