AspNetCoreOData icon indicating copy to clipboard operation
AspNetCoreOData copied to clipboard

Support type cast in group by

Open clemvnt opened this issue 1 year ago • 5 comments

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"
    }
  }
]

clemvnt avatar Mar 02 '24 00:03 clemvnt

@microsoft-github-policy-service agree

clemvnt avatar Mar 02 '24 00:03 clemvnt

@clemvnt Will you continue working on this PR?

ElizabethOkerio avatar Jun 25 '24 09:06 ElizabethOkerio

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.

clemvnt avatar Jun 25 '24 10:06 clemvnt