I have an example in SQL how to use the same logic in Linq to Entity?
SELECT * FROM TABLE WHERE DATE BETWEEN STARTDATE AND ENDDATE
I'm assuming C#.
DateTime startDate=bla; DateTime endDate=blabla; using(var db=new MyDataContext()) { var filteredData=db.TABLE.Where(t => t.DATE > startDate && t.DATE < endDate); //... }
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