-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
"Type" keyword in property behaves incorrectly in GroupBy (via ToDistinctList) #673
Comments
Hello @brad302, Thanks for the information, however can you please make a complete working dotnet-fiddle example project to demonstrate this issue? |
@StefH, hopefully this works for you ... https://dotnetfiddle.net/tOuoRd I just realised the issue itself is buried in the Hopefully you can help. Thanks |
Any updates on this one by chance? |
@brad302 |
I believe I’ve found an issue with the
System.Linq.Dynamics.Core
library and theGroupBy
method.It may very well be happening elsewhere but I’ll let you work that out.
With this JSON …
… when I execute
GroupBy
with the followingkeySelector
…new (Type, Something.Field1)
… the resulting data misrepresents the Type field values.I then create an array of key/values with the grouping results and this is what comes out. You can see that property Type simply comes back as a value of 1 and not the values within the fields themselves.
This is the resulting response from my framework.
If I change the property name from “Type” to something else, it works fine.
Keen to get your thoughts on this.
Thanks
Brad
The text was updated successfully, but these errors were encountered: