I always allow the user to perform case-insensitive searches on my sites, and while I know how to do this in the generated code, I wonder if there's a more concise way. For example I started with this:
filter.AddWithOr(PersonFields.LastName % likeValue);
When I realized I needed to specify case-insensitivity, I wound up writing this:
predicate = new FieldLikePredicate(PersonFields.LastName, likeValue);
predicate.CaseSensitiveCollation = true;
filter.AddWithOr(predicate);
Ideally I'd like a way to specify case-insensitivity using the short form -- I think it would make my code more readable. Plus I filter on a lot of fields.