📜  日期之间的实体框架 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:47.756000             🧑  作者: Mango

代码示例4
....
&&
(
    s.Created_at.Value.Day >= dateStart.Day && s.Created_at.Value.Day <= dateEnd.Day &&
    s.Created_at.Value.Month >= dateStart.Month && s.Created_at.Value.Month <= dateEnd.Month &&
    s.Created_at.Value.Year >= dateStart.Year && s.Created_at.Value.Year <= dateEnd.Year
)).count();