linq to entities orderby strange issue
问题 maybe foolish question, first times with linq to entities (well, linq in general). table with id(int), value(decimal), name(string) for each record i need id list<string> id value name THE FOLLOWING WORKS FINE int pageSize=10 int pageIndex=2 var data = (from c in db.Customers orderby c.ID select new { c.ID, c.Value, c.Name } ).Skip(pageSize * pageIndex).Take(pageSize).ToArray(); but doesn'organize the data in the way i need them. However the results are like: 1 100 name A 2 300 name B 3 200