Questions tagged [microsoft-odata]
20 questions
0
votes
1 answer
Microsoft.OData.Client $expand does not populate the model
I am using Microsoft.OData.Client based on the microsoft sample application.
Here's my simple WebAPI Controller:
[Route("test")]
[HttpGet]
public IHttpActionResult Test()
{
var context =…

Myster
- 17,704
- 13
- 64
- 93
0
votes
2 answers
Why is my HTTP Post no longer passing the body content after adding Microsoft.AspNetCore.OData.Versioning
I am working on an ASP.NET Core 2.2 API that is implementing OData via Microsoft.AspNetCore.Odata v7.1.0 NuGet. I had everything working fine so I decided to add API Versioning via the Microsoft.AspNetCore.OData.Versioning v3.1.0.
Now, my GET and…

whiskytangofoxtrot
- 927
- 1
- 13
- 41
0
votes
1 answer
Odata V4 group by with Top and skip not working
I am not able to get groupby to work with top and skip which should be most simplest thing.
I am fetching data using OData and able to get output using the query…

Sac
- 35
- 9
0
votes
1 answer
How to mock ODataClient's Expand method with MSFakes?
I have generated an OData client from a Dynamics 365 metadata. I'm writing unit tests for the business logic and I want to mock the REST API with custom data.
Previously I asked how to set the fake return data for the ODataClient and I found an…

kor_
- 1,510
- 1
- 16
- 36
0
votes
1 answer
Microsoft OData controller - invoking action on selection
Is it possible to invoke an action while additionally querying OData resource?
I'd like to assign a list of resources to a person (selected in the query string) by using one OData POST query.
Ie. is it possible to perform something like this (in…

A.D.
- 425
- 3
- 15