1
天
我有以下分組聲明:LINQ黨團由
var test = from a in MyDC.Table
where .....
group a by a.Date into daygroups
select new MyModel()
{
TheCount = (from c in daygroups
where c.AppointDate < "the date of the daygroups for this day").Sum(d =>d)
}
基本上,查詢看起來在表中某一月內任命由天不計數月的每一天。 Daygroups將結果按天分組,以便我可以做日常計數。如何指定日期組內的日期?
謝謝。