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 8.x **Describe the bug** OData does not work with Minimal API, ie without Controllers **Reproduce steps** ``` app.MapGet("/WeatherForecast", [EnableQuery] () => Enumerable.Range(1, 5).Select((int index) =>...
**Assemblies affected** Microsoft.AspNetCore.OData 8.0.10 Microsoft.OData.Core 7.11.0 **Describe the bug** Trying to cast in an expand, eg `~/Orders?$expand=Customer/Model.VipCustomer($orderby=VipEmail)` (taken from https://github.com/OData/odata.net/pull/2300), results in an InvalidCastException: ```text An unhandled exception has occurred...
OData conventional routing not supports multiple endpoint for a entity with different prefix in path
--- **Issue moved from dotnet/aspnetcore#41864** - Please respond to @padhumailin. --- _From @padhumailin on Thursday, May 26, 2022 9:03:02 AM_ ### Is there an existing issue for this? - [X]...
Hi! When configuring Composite Key for one of tables we got problem with key. We had two entities: ```cs public class PurchaseOrder { public long Id { get; set; }...
Please check the repository (Sample Project) : https://github.com/padhumailin/ODataV8Demo Parent entity Accounts has a collection property LinkedAccounts Entity, I need to apply aggregation on collection property **filter on collection is working:**...
**Assemblies affected** ASP.NET Core OData 8.x **Describe the bug** Nullable="false" is missing on the property if a navigation property is present. **Reproduce steps** 2 simples class, generating project, see $metadata...
**Version**: Microsoft.AspNetCore.OData v8.0.10 **Description**: DateTime not being parsed correctly for functions. **Steps to Reproduce** Add a function with DateTime parameters. Example: ``` var getAvailabilityFunction = builder.EntityType().Collection.Function("GetAvailability"); getAvailabilityFunction.Parameter("tourPackageId"); getAvailabilityFunction.Parameter("hotelName"); getAvailabilityFunction.Parameter("dateFrom"); getAvailabilityFunction.Parameter("dateTo");...
**Assemblies affected** ASP.NET Core OData 8.x **Describe the bug** The client code generated with the Visual Studio Connected Services cannot be build due to errors with /$count segment **Reproduce steps**...
Assemblies affected: ASP.NET Core OData 8.0.8 Due to lack of documentation, OData is an obscure framework to use. According to this OData v4 documentation http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_ArithmeticOperators, when we use `$compute=InitialDate sub...
`var odataBuilder = new ODataConventionModelBuilder();` When using the AddEntitySet(), my endpoints fail with the error: **_System.InvalidOperationException: 'The entity set 'foo' is based on type 'foo' that has no keys defined.'_**...