【发布时间】:2011-04-21 17:39:04
【问题描述】:
我在数据库中有一个列作为 EffectiveDate
这是 DateTime 的类型。
我有一个 linq 查询来从表中获取 EffectiveDate。但是当我得到时,我会随着时间的推移得到 EffectiveDate。
但在我的 linq 查询中,我只需要 Date 我不想要 EffectiveDate 的时间。
如何为此编写 Linq 查询?
谢谢
【问题讨论】:
-
你在使用实体框架吗?
标签: asp.net linq linq-to-sql asp.net-mvc-2