AspNetCoreOData
AspNetCoreOData copied to clipboard
ASP.NET Core OData: A server library built upon ODataLib and ASP.NET Core
**Assemblies affected** ASP.NET Core OData 9.3.1 **Describe the bug** I have a SQL Server database with a `Customer` table. `Customer` contains a column named `CustomerName`. I'm processing the following request:...
I believe when we encounter a filter like this: `myDate le 2025-05-02` The expression per operand will be generated here, which creates a numeric representation: https://github.com/OData/AspNetCoreOData/blob/main/src/Microsoft.AspNetCore.OData/Query/Expressions/ExpressionBinderHelper.cs#L425-L441 When combined with EFCore,...
Hello, I'm trying to apply EDM validation on ODataActionParameters, but it doesn't seem to work as expected. Below is a minimal reproduction: ``` public partial class foo { [Key] public...
Hello, When you use `[EnableQueryAttribute]` and OData.Core throws `ODataException`, it's implicitly converted to a 400 Bad Request error with error details formatted as JSON. When you use the `ODataQueryOptions.ApplyTo(IQueryable)` approach,...
**Assemblies affected** 1. Microsoft.AspNetCore.OData v9.x 2. Any ASP .NET Core OData 8.x host using the built‑in ODataMessageWrapperHelper.Create(...) **Describe the bug** When registering a custom ODataMessageReaderSettings with a larger MaxReceivedMessageSize via...
**Assemblies affected** Microsoft.AspNetCore.OData 9.2.1 **Describe the bug** Logging in SegmentTemplateHelpers causes `System.FormatException` Index (zero based) must be greater than or equal to zero and less than the size of the...
This is the design draft to support minimal API. Seeking for reviews and feedbacks. Don't hesitate to leave your comments in the PRs. If you want to try the changes,...
I added a Point property to my entity following this guide: https://devblogs.microsoft.com/odata/customizing-filter-for-spatial-data-in-asp-net-core-odata-8/ It seems a bit convoluted, but worked fine, in that I can query my "LocationDTO" entity and run...
## Assemblies affected - Microsoft.AspNetCore.OData 9.x - 9.2.1 used in investigation - Microsoft.AspNetCore.OData 8.x - 8.2.7 used in investigation - Microsoft.AspNetCore.OData 7.x - 7.7.8 used in investigation ## Describe the...
**Assemblies affected** 9.2.0 **Describe the bug** If the query is wrong e.g. `https://localhost:5001/odata/myset?$filter=invalid` the error returned is some custom format, and not in the ProblemDetails format that Micrsoft suggests. **Request/Response**...