在下面的查询中如何删除日期时间列的de time部分以仅获取不同的日期?
using (var ctx = new DBConn()) { var q = ctx.Table.Select(r => r.datetimefield).Distinct(); }
c# linq
c# ×1
linq ×1