I am trying to make an alphabetical comparison in LINQ but the expression cannot be compiled in SQL.
Any hint?
The suggested answer does not work. I get:
The LINQ expression '(Compare([f].str1, str2, Ordinal) < 0)' could not be translated and will be evaluated locally.
Update: I am using the PredicateBuilder found in http://www.albahari.com/nutshell/predicatebuilder.aspx