开发者

subsonic 3.0.0.3 activeRecord Between

开发者 https://www.devze.com 2022-12-10 20:40 出处:网络
Hi im using subsonic 3.0.0.3 activeRecord but cant seems to figure between ! select * from orders where orderdate between startdate, enddate;

Hi im using subsonic 3.0.0.3 activeRecord but cant seems to figure between !

select * from orders where orderdate between startdate, enddate;

have tried IQueryable<orders&开发者_JAVA百科gt; myOrders = order.All().Where(x => x.order_date).isBetweenAnd

help much appreciated, please make note of version number, and that any answers actually work for that version and activeRecord.

thanks


try:

order.All().Where(x => x.order_date >= Min_Date && x.order_date <= Max_Date);
0

精彩评论

暂无评论...
验证码 换一张
取 消