Linq syntax for emitting Between

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Posts: 124
Joined: Tue 19 Feb 2008 19:12

Linq syntax for emitting Between

Post by 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.

Devart Team
Posts: 8088
Joined: Thu 14 Aug 2008 12:44

Post by 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 <= '' ?

Post Reply