Using SQL Server 2005 I've run a query like this
SELECT * FROM mytable WHERE (LEFT (title, 1) BETWEEN @PREFIXFROM AND @PREFIXTO)
I use this to do alphabet filtering, so for example
PREFIXFROM = a PREFIXTO = c and I get all the items in mytable between a and c (inclusive)
How do I do this in linq?
Selecting all the records fine.. but 1) how do I do the "LEFT" operation and 2) How do I do a <= type operator with a non numeric field?
Any ideas appreciated!