Just as the title says, I want something in the likes of:
SELECT * FROM TABLE WHERE YEAR BETWEEN 2011 AND 2005;
Any help here?
There is no BETWEEN
syntax in linq. So you might have to use something like this:
var result=(
from t in db.TABLE
where t.YEAR>=2005 && t.YEAR=<2011
select t
);
Where db is the linq data context
I don't know about a BETWEEN
command in sql, but you can always do something like
where year >= 2005 AND year <= 2011
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With