AspNetCoreOData
AspNetCoreOData copied to clipboard
Support type cast in group by
Hello,
Cast type support in group by.
This PR needs https://github.com/OData/odata.net/pull/2879.
Issues
https://github.com/OData/AspNetCoreOData/issues/1180
Description
For the following group by : groupby((MyAddress/Fully.Qualified.Namespace.HomeAddress/HomeNO))
The response was an error :
System.NotSupportedException: The query specified in the URI is not valid. Binding OData QueryNode of kind 'SingleResourceCast' is not supported by 'AggregationBinder'.
Now, the response is :
[
{
"myAddress": {
"homeNO": "Value1"
}
},
{
"myAddress": {
"homeNO": "Value2"
}
}
]
@microsoft-github-policy-service agree
@clemvnt Will you continue working on this PR?
Yes. I'm waiting for a new version of Microsoft.OData.Core with the https://github.com/OData/odata.net/pull/2879 fix before publishing the PR.