All Questions
8 questions
0
votes
1
answer
158
views
Microsoft.Azure.Cosmos.Linq.DocumentQueryException: Expression with NodeType 'Conditional' is not supported
When using OData filter operator any on a nested property it fails returning:
Microsoft.Azure.Cosmos.Linq.DocumentQueryException: Expression with NodeType 'Conditional' is not supported.
The Json ...
1
vote
1
answer
1k
views
is there a way to query OData with a linq query
I'm using [EnableQuery] and returning an IQueryable from my api controller like this:
[HttpGet]
[EnableQuery]
public IQueryable<Category> Get()
{
return getCategories().AsQueryable();
}
Is ...
1
vote
1
answer
516
views
How to preserve SQL performance that I get with IQueryable<Entity> with a IQueryable<DTO> when using oData?
I am using EF Core and oData. I've noticed that oData "magically" updates my query when my controller returns an IQueryable that returns an EF Core entity, but as soon as I try to return a ...
1
vote
0
answers
1k
views
OData $orderBy with nested $filter and $top
I have an OData endpoint and want to order the results based on a property Sort of the first entry in a nested collection.
It boils down to translate the following LINQ query to OData syntax.
...
0
votes
0
answers
50
views
Modify variable in expression tree to check recursion depth
To query our data from the frontend we use an OData .NET 5 API. To map our database objects to DTOs we use some custom mapper methods. An earlier problem we solved requires us to decompile the lambda ...
1
vote
1
answer
2k
views
Odata filtering in expanded property does not work
We have created a .NET Core API which uses Odata to filter, select, and expand the data. The data is stored in a Microsoft SQL Server database and retrieved through EntityFramework Core (code first). ...
1
vote
1
answer
705
views
Projecting an IEnumerable inside an Projected IQueryable making N Requests to the Database
I'm making an Asp.net Core Api and one of the Actions of the Controller i need to return an IQueryable of a DTO, but one of the properties is an IEnumerable of another DTO in a relationship one to ...
1
vote
0
answers
60
views
Response from OData API in .NetCore is well formed?
I have this function code made in a controller CustomEntityController of a CustomEntity Model from OData API
public HttpResponseMessage Post([FromBody] CustomEntity entity)
{
HttpResponseMessage ...