-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Case insensitive GroupBy() #351
Comments
Technically this is possible, however, what problem will this solve? Can you provide an example / unit test? |
I use GroupBy() to group same values by dynamic keys and get unique values to remove duplicates. |
If you execute this query on a database (sql), then this does work fine. In LinqPad: string[] keys = new[] { "Text" };
var city = x.AsQueryable().Where(t => t.Text == "NewYork");
city.Dump();
var distinctedRaw = x
.AsQueryable().Where(t => t.Text == "NewYork")
.GroupBy($"new({string.Join(",", keys)})", "it")
.Select("it.FirstOrDefault()");
distinctedRaw.Dump(); |
The problem is that i'm not querying db, i'm manipulating local array 😃 |
I see. |
... and a lot of time I suppose. This issue is not urgent, at the moment I lowercasing all. It's a bad workaround, I know, but otherwise I wouldn't know how to do it |
Hello @kKen94 , The v1.1.2 has been released. The GroupBy now supports the Best Regards, Jon Performance Libraries Runtime Evaluation |
Is it possible adding IEqualityComparer to GroupBy()?
The text was updated successfully, but these errors were encountered: