string ids = "1,2,3";
var list = context.Table.Where(a => ids.Contains(a.ID)).ToList();
context.table.OrderBy(s=>s.ID).ToList() 升序
context.table.OrderByDescending(s=>s.ID).ToList(); 降序
context.table.OrderBy(s=>s.ID).ThenBy(s=>s.Name)ToList()
string ids = "1,2,3";
var list = context.Table.Where(a => ids.Contains(a.ID)).ToList();
context.table.OrderBy(s=>s.ID).ToList() 升序
context.table.OrderByDescending(s=>s.ID).ToList(); 降序
context.table.OrderBy(s=>s.ID).ThenBy(s=>s.Name)ToList()