摘要:
DataTable dt = GetTestData(10); //获取10条测试数据 var queryByService = from r in dt.AsEnumerable() group r by r.Field<string>(4) into g select new { Service = g.Key, Bookings = g.Count(p => p.Field<string>(1) != ""), ConfirmedBookings = g.Count(p => p.Field<string>(1) == 阅读全文