Replies: 1 comment
-
fslq.Select().GroupBy( a=> a.addtime.Date ) .ToList(a=>new { key = a.Key,Size = a.Count() } ); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
比如需要 topic 表 addtime 为 datetime 类型
需要 select date( addtime ) , count(1) from topic group by date(addtime);
fslq.Select().GroupBy( a=> ?????? ) .ToList(a=>new { key = a.Key,Size = a.Count() } );
Beta Was this translation helpful? Give feedback.
All reactions