网上看到的: class Program { static List<User> list = new List<User>() { new User(){ID=1,Name="Hello",Age=17,Hobby="a"}, new User(){ID=2,Name="Boy",Age=50,Hobby="z"}, new User(){ID=3,Name="Girl",Age=
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Common { public class QueryParameters { public QueryParameters(); public string order { get; set; } public int page { get;
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace DataSort { public class DataHelper { public static IQueryable<T> Sort<T>(IQueryable<