-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter operator for case-insensitive for string #21
Comments
Hi, thank you for your feedback e.g var gq = new GridifyQuery { Filter = "FirstName=John" };
var gm = new GridifyMapper<TestClass>()
.AddMap("name", q => q.Name.ToLower() , c => c.ToLower());
var query = Ds.ApplyFiltering(gq, gm); Although I agree having an operator is simpler, The problem with having e.g
it's really rare if someone wants to have the |
Hi, thank you for reply. About symbol, I choice that without a specific reason. and when you need an apostrophe us ' . what do you think? |
You are completely right, but I think supporting the Apostrophe characters has the same problem. also because Gridify is being used in a lot of projects I should avoid any major breaking changes. |
This feature is available in var gq = new GridifyQuery() { Filter = "FirstName=John/i" }; |
It's usual to filter string data in case-insensitive mode.
A way to do that is add
#
operator.var gQuery = new GridifyQuery() { Filter = "FirstName=#John, Address=*#st", OrderBy = "PhoneNumber" };
Regards
The text was updated successfully, but these errors were encountered: