请问一下大家,我在entity framework 5里面我想获取一个月内,所有时间从18点30开始到22点00分数据该怎么写lambda表达式呢
很简单类似:
var q = from c in customer
where (c.CreatedDate.Hour > 18 || (c.CreateDate.Hour == 18 && c.CreateDate.Minute >= 30))
&& c.CreateDate.Hour <= 22
select c;
漂亮的解决了我的困扰