使用query.select(q=> q.time).groupby(g=> g).count() Linq报错, Value cannot be null。查询的表有的是没有数据的。但是查单个表是不会报这个错的