Support of StringComparison

Oct 7, 2009 at 8:08 AM


wouldn't it be interesting to support StringComparison enum when possible ?

For instance, the String.StartsWith method has an overload String.StartsWith(String, StringComparison).
In the generated sql code (at least for T-SQL), it is possible to add a "COLLATE xxxx_CI" for the string comparison. The change seems feasible (I have coded a quick hack for it), but the only issue is to map StringComparison to SQL collations.