|
List<student> query =(List< BuildingNumber>)from student Name in student
orderby student.Name ascending
select student;
orderby student.Name ascending
select student;
无法将类型为“System.Linq.OrderedEnumerable`2[student,System.String]”的对象强制转换为类型“System.Collections.Generic.List`1[student]”。
var query =from student in student.AsEnumerable<BuildingNumber>()
orderby student.Name ascending
select student ;
orderby student.Name ascending
select student ;