var value &#61; from data in dataSet.Tables[0].AsEnumerable()//where before <&#61; data.Field("alarmTime") &&// data.Field("alarmTime") <&#61; nowgroup data by data.Field("alarmTime").ToString("yyyy-MM-dd")into rselect new{count &#61; r.Count()};
访问数据
foreach (var v in value) {Console.WriteLine(v.vount);}