AspNetCoreOData
AspNetCoreOData copied to clipboard
ASP.NET Core OData: A server library built upon ODataLib and ASP.NET Core
**Assemblies affected** Microsoft.AspNetCore.OData v9.2.1 **Describe the bug** `Request.GetETag()` returns `null` when used in an action that does not call `ActionConfiguration.ReturnsFromEntitySet()`. ```csharp entitySet.EntityType.Action(nameof(CustomersController.ThisWorks)).ReturnsFromEntitySet(entitySet); entitySet.EntityType.Action(nameof(CustomersController.ThisFails)); ``` While I can include the call...
**Assemblies affected** ASP.NET Core OData 8.2.4 **Describe the bug** In a webapi project, I would like to customize ODataSerializerProvider by deriving it in ODataCustomODataSerializerProvider class to serialize a custom type,...
### **Assemblies affected** The issue occurs in `Microsoft.AspNetCore.OData` versions starting from `8.0.5` and up to `9.2.0`. The last known working version is `8.0.4`. --- ### **Describe the bug** A regression...
I think that `$it` meaning is misenterpreted in the current implementation. From the [specs (5.1.1.14.4)](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_it) (emphasis mine): > The $it literal can be used in expressions to refer to the...
**Assemblies affected** - ASP.NET Core OData 8.x - ASP.NET Core OData 9.x **Describe the bug** Related to https://github.com/OData/AspNetCoreOData/issues/1425. **After** #1425 is mitigated, dynamic single-valued complex properties are not serialized in...
Originally, `EdmStructuredObject` (the base class for `EdmEntityObject` and `EdmComplexObject`) did **not** implement `IEdmChangedObject`. However, four years ago, a change was introduced through [[this commit](https://github.com/OData/AspNetCoreOData/commit/ee937986a197b9a231f63017790b3cfd3ce0621b)](https://github.com/OData/AspNetCoreOData/commit/ee937986a197b9a231f63017790b3cfd3ce0621b) to make `EdmStructuredObject` implement `IEdmChangedObject`. This...
**Assemblies affected** - ASP.NET Core OData 8.x - ASP.NET Core OData 9.x **Describe the bug** When a typed delta response payload contains a nested `Delta`, a serialization exception is thrown...
There is currently no way to validate query options without throwing an exception. I'd like a `TryValidate` method, so I don't need to catch an exception to find out that...
**Assemblies affected** - ASP.NET Core OData 8.x - ASP.NET Core OData 9.x **Describe the bug** Public `IsDeltaResource` extension method is buggy. **Reproduce steps** ```csharp var orderEntityType = new EdmEntityType("NS", "Order");...
**Assemblies affected** ASP.NET Core OData 8.x ASP.NET Core OData 9.x **Describe the bug** If I have a `byte[] RowVersion` field and I check for and apply `queryOptions.ifNoneMatch.ApplyTo`, the query remains...