Oh StackOverflow! I do need thy help. I wish to execute something similar (and let's say identical for this purposes of this post) to this other question. Specific Time Range Query in SQL Server
Caveat, I want to do this on the client side....
Here's an example search criteria:
- 3/1/2009 - 3/31/2009
- between 6AM-10PM each day
- Tues/Wed/Thurs only
Now this is all fine and dandy on the server side. Both SQL or Linq have functions like "DatePart" or Day of Week.
My initial reaction is to look for something hanging off of breeze.FilterQueryOp to construct a composite where clause which would accomplish the same, but I can't seem to figure out how to make the query only recognize date parts. DayOfWeek, TimePart, DayOfYear, and a few others have me completely baffled. Should anyone stumble upon this question, I humbly beg your assistance.
I could always use a SPROC, but then what's the point of using breeze anyways? ;)