Linq syntax for emitting Between

Linq syntax for emitting Between

Postby KW » Tue 04 Oct 2011 01:20

I am using Linq to entities.

I am wondering if there is any way to get linq to emitt the Between key word when dealing with dates, for example:

this.objectcontext.where(x=>x.Date between x and y);

I know you can emit x.Date >= '' and <= '' but this is not what I want. I have need to use mysql bewteen key word.
Posts: 123
Joined: Tue 19 Feb 2008 19:12

Postby Shalex » Fri 07 Oct 2011 05:54

There is no Between key word in LINQ to Entities. Could you please tell us its advantage comparing to x.Date >= '' and <= '' ?
Devart Team
Posts: 7705
Joined: Thu 14 Aug 2008 12:44

Return to dotConnect for MySQL