OData response returns @context/@count instead of @odata.context/@odata.count #1514
-
I am getting issue in consuming response with Synfusion blazor data grid with OData4Adaptor, Is it some kind of limitation in Syncfusion that it only consumes data from OData in the following format.
However i am getting response in following format. { Is there any way to change the key value to the desired response? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I had earlier use the V. 401 replacing with V4 was the solution for me.
|
Beta Was this translation helpful? Give feedback.
-
@aakashbashyal-maitri By the way, you can also customize the ODataMessageWriterSetting to include 'odata' prefix in the ODataVersion.V401. See commit at: https://github.com/OData/AspNetCoreOData/blob/main/sample/ODataMiniApi/Endpoints/CustomersEndpoints.cs#L43 |
Beta Was this translation helpful? Give feedback.
I had earlier use the V. 401 replacing with V4 was the solution for me.