日期:2014-05-20 浏览次数:20755 次
string[] ss = new string[5] { "a", "b", "c", "d", "e" }; var v = from s in ss select s+":";//加一个冒号返回
------解决方案--------------------
var result = db.Users.OrderBy(x => x.Time).Select((x, Floor) => new { x.Name, x.Age, x.Time, Floor + 1 }); //从1开始标号。