C#在扩展方法中指定orderby
如何在扩展方法中指定降序C#在扩展方法中指定orderby,c#,linq,C#,Linq,如何在扩展方法中指定降序 var qry=from p in context.Persons orderby p.salary descending select p; var qry=context.Persons.OrderBy(c=>c.salary); 扩展方法 var qry=from p in context.Persons orderby p.salary descending select
var qry=from p in context.Persons
orderby p.salary descending select p;
var qry=context.Persons.OrderBy(c=>c.salary);
扩展方法
var qry=from p in context.Persons
orderby p.salary descending select p;
var qry=context.Persons.OrderBy(c=>c.salary);
使用
使用
使用:
使用: