You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… when I execute GroupBy with the following keySelector … 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.
brad302
changed the title
"Type" keyword in property behaves incorrect in GroupBy
"Type" keyword in property behaves incorrectly in GroupBy
Feb 21, 2023
I just realised the issue itself is buried in the ToDynamicList() method. From there, it's not doing what I expect. The Key that's being derived is skewed from the actual data when (as previously pointed out) the name of the property is Type.
Hopefully you can help.
Thanks
brad302
changed the title
"Type" keyword in property behaves incorrectly in GroupBy
"Type" keyword in property behaves incorrectly in GroupBy (via ToDistinctList)
Mar 6, 2023
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: