c# 4.0 - Dynamic Linq and use of Between -


i having dynamic linq should perform comparison between 2 integers. tried many none of them worked me.

code

db.bibs.where(" id >=  1 && id<1000 ") db.bibs.where(" id between  1 && 1000 ") 

how form string make work. suggestion highly appreciated.

assuming sql server, doesn't understand && use , instead:

db.bibs.where(" id between 1 , 1000 ") 

http://weblogs.asp.net/scottgu/dynamic-linq-part-1-using-the-linq-dynamic-query-library


Comments