All Questions
9 questions
2
votes
1
answer
131
views
Could not find a property named 'keyName' on type 'MyClass' on ASP.NET Core OData 8.2.5
Assemblies affected: ASP.NET Core OData 8.2.5
I am getting an error
Could not find a property named 'keyName' on type 'MyClass' on ASP.NET Core OData 8.2.5
but it was working fine up to the ASP.NET ...
0
votes
1
answer
489
views
How to convert ODataQueryOptions<DtoType> to ODataQueryOptions<EntityType> to query the underlying storage?
I have a webapi controller using ProductDTO type for clients but the repository is using a Product type.
I would like to use odata on my endpoint. I receive the ODataQueryOptions parameter and I want ...
1
vote
1
answer
1k
views
How to do custom function routing in C# / ASP.NET Core 6 Web API Server OData controller?
I am trying to implement a custom function in my OData based controller. This function should create a number of test records in the database. The number of test records to be created is passed as ...
1
vote
0
answers
371
views
Generate automatically a delta feed in OData
in odata (.net core) it is possible to generate delta results in a delta feedback,
like this https://learn.microsoft.com/en-us/odata/webapi/DeltaFeed_support.
As I see in the example, they create ...
0
votes
2
answers
2k
views
OData v4 Query To Filter Results In A Complex Object
I developed a .NET Core v5 WebAPI and Integrated OData v4.
Everything works if I return a normal list of students from my controller and perform OData queries.
But my API has a standard response ...
0
votes
1
answer
2k
views
How do I enable full OData functionality in .NET Core 5.0 WebAPI solution?
I'm having trouble getting OData to work in a new .NET Core WebAPI solution (.NET 5.0).
I am getting data back via the standard "/api/entity" and using a custom filter, but I'd much prefer ...
0
votes
0
answers
51
views
WebApi / OData Relational Data Oddity
I've noticed that when I return a collection from an API Controller (in this case an ODataController), that I do not need to explicitly use the "Include" syntax and can still access ...
-2
votes
2
answers
318
views
Querying DTOs based on EF using Odata
I have an ASP.NET Core Web API setup with a SQL Server database and an EF data model.
Versions:
EF: Microsoft.EntityFrameworkCore 5.0.0-preview.7.20365.15
OData: Microsoft.AspNetCore.OData 7.4.1
.Net ...
2
votes
1
answer
3k
views
PlatformNotSupportedException: Secure binary serialization is not supported on this platform
Trying to implement custom authorization attribute converting from WebApi 2.0 to .Net Core 3.1 and Microsoft.AspnetCore.Odata 7.4.1 on WebApi and Microsoft.Odata.Client 7.7.0.
I revamped this code ...