webapinetcore - Microsoft.AspNetCore.OData 9.4.1-Nightly202511100520

This package contains everything you need to create OData v4.0 endpoints using ASP.NET Core MVC Core 10.x to support OData query syntax for your Web APIs.

PM> Install-Package Microsoft.AspNetCore.OData -Version 9.4.1-Nightly202511100520 -Source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard

> nuget.exe install Microsoft.AspNetCore.OData -Version 9.4.1-Nightly202511100520 -Source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard

> dotnet add package Microsoft.AspNetCore.OData --version 9.4.1-Nightly202511100520 --source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard
<PackageReference Include="Microsoft.AspNetCore.OData" Version="9.4.1-Nightly202511100520" />
Copy to clipboard
source https://www.myget.org/F/webapinetcore/api/v3/index.json

nuget Microsoft.AspNetCore.OData  ~> 9.4.1-Nightly202511100520
Copy to clipboard

> choco install Microsoft.AspNetCore.OData --version 9.4.1-Nightly202511100520 --source https://www.myget.org/F/webapinetcore/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "webapinetcore" -SourceLocation "https://www.myget.org/F/webapinetcore/api/v2"
Install-Module -Name "Microsoft.AspNetCore.OData" -RequiredVersion "9.4.1-Nightly202511100520" -Repository "webapinetcore" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/webapinetcore/api/v2/symbolpackage/


ASP.NET Core OData 8.x


Component Build Status
ASP.NET Core OData Rolling Build status
ASP.NET Core OData Nightly Build status
.NET Foundation Release Build status

1. Introduction

Be noted: Switch to use "main" as default branch. 1/6/2022

This is the official ASP.NET Core OData repository. ASP.NET Core OData is a server side library built upon ODataLib and ASP.NET Core.

Blogs:

Example:

  • ODataRoutingSample: ASP.NET Core OData sample project in this repo.

    • ~/$odata gives a static routing table page of the service

    • ~/swagger gives a swagger/openapi page

    • Append ~/$openapi to each route gives a raw openapi OData page, for example, ~/v1/$openapi

    Please go to sample folder see more samples.

Solution:

2. Basic Usage

In the ASP.NET Core Web Application project, update your Startup.cs as below:

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddDbContext<BookStoreContext>(opt => opt.UseInMemoryDatabase("BookLists"));
        services.AddControllers().AddOData(opt => opt.AddRouteComponents("odata", GetEdmModel()));
    }

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        // Send "~/$odata" to debug routing if enable the following middleware
        // app.UseODataRouteDebug();

        app.UseRouting();
        app.UseEndpoints(endpoints =>
        {
            endpoints.MapControllers();
        });
    }

    private static IEdmModel GetEdmModel()
    {
        // …
    }
}

That's it.

3. Building, Testing, Debugging and Release

3.1 Building and Testing in Visual Studio

Visual Studio 2022 is required to build the source project in order to support the DateOnly and TimeOnly types, which were introduced in .NET 6.

3.2 One-click build and test script in command line

Coming soon.

3.3 Debug

The symbol package is uploaded to nuget symbol server.

It supports source link debug. Remember to check Enable Source Link support if you debug using Visual Studio.

3.4 Nightly Builds

The nightly build process will upload NuGet packages for ASP.NET Core OData to:

To connect to webapinightly feed, use this feed URL:

4. Documentation

5. Community

5.1 Contribution

Any contributions, feature requests, bugs and issues are welcome.

5.2 Support

Code of Conduct

This project has adopted the .NET Foundation Contributor Covenant Code of Conduct. For more information see the Code of Conduct FAQ.

.NET Foundation

This project is supported by the .NET Foundation.

AspNetCoreOData is a Copyright of © .NET Foundation and other contributors. It is licensed under MIT License

  • .NETFramework 10.0
    • Microsoft.OData.Core (>= 9.0.0-preview.2 && < 10.0.0)
    • Microsoft.OData.Edm (>= 9.0.0-preview.2 && < 10.0.0)
    • Microsoft.OData.ModelBuilder (>= 2.0.0 && < 3.0.0)
    • Microsoft.Spatial (>= 9.0.0-preview.2 && < 10.0.0)
  • .NETFramework 10.0: 10.0.0.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Timestamp: 11/10/2025 5:22:30 AM

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=DigiCert SHA256 RSA4096 Timestamp Responder 2025 1, O="DigiCert, Inc.", C=US
  SHA1 hash: DD6230AC860A2D306BDA38B16879523007FB417E
  SHA256 hash: 4AA03FA22CD75C84C55C938F828E676B9CAECAB33FE36D269AA334F146110A33
  Issued by: CN=DigiCert Trusted G4 TimeStamping RSA4096 SHA256 2025 CA1, O="DigiCert, Inc.", C=US
  Valid from: 6/4/2025 12:00:00 AM to 9/3/2036 11:59:59 PM

Signature type: Author

Verifying the author primary signature with certificate: 
  Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  SHA1 hash: F25C45D17C53D4E0D1DC9FB9DFD0731FCF904B77
  SHA256 hash: 566A31882BE208BE4422F7CFD66ED09F5D4524A5994F50CCC8B05EC0528C1353
  Issued by: CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US
  Valid from: 7/27/2023 12:00:00 AM to 10/17/2026 11:59:59 PM

Owners

OData Team

Authors

Microsoft

Project URL

http://github.com/OData/AspNetCoreOData

License

MS-EULA

Tags

Microsoft AspNetCore WebApi OData

Signature

Validation: Valid

Info

179 total downloads
6 downloads for version 9.4.1-Nightly202511100520
Download (448.85 KB)
Download symbols (155.77 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
10.0.0-Nightly202511280513 448.41 KB Fri, 28 Nov 2025 05:25:07 GMT 0
10.0.0-Nightly202511271312 448.41 KB Thu, 27 Nov 2025 13:23:40 GMT 0
9.4.1-Nightly202511100520 448.85 KB Mon, 10 Nov 2025 05:33:10 GMT 6
9.4.1-Nightly202511050747 448.76 KB Wed, 05 Nov 2025 07:56:00 GMT 6
9.4.1-Nightly202510240516 448.04 KB Fri, 24 Oct 2025 05:27:03 GMT 7
9.4.1-Nightly202510231759 448.04 KB Thu, 23 Oct 2025 18:09:15 GMT 7
9.4.1-Nightly202510230518 448.05 KB Thu, 23 Oct 2025 05:27:50 GMT 7
9.4.0-Nightly202511050225 448.96 KB Wed, 05 Nov 2025 02:35:21 GMT 4
7.7.9-Nightly202512040705 1022.6 KB Thu, 04 Dec 2025 07:14:28 GMT 0
7.7.9-Nightly202512032128 1022.59 KB Wed, 03 Dec 2025 21:37:25 GMT 0
7.7.9-Nightly202512030707 1022.58 KB Wed, 03 Dec 2025 07:17:55 GMT 0
7.7.9-Nightly202512021627 1022.59 KB Tue, 02 Dec 2025 16:43:07 GMT 0
7.7.9-Nightly202512021138 1022.58 KB Tue, 02 Dec 2025 11:47:48 GMT 0
7.7.9-Nightly202511200708 1022.59 KB Thu, 20 Nov 2025 07:18:00 GMT 6
7.7.9-Nightly202511182141 1022.6 KB Tue, 18 Nov 2025 21:52:04 GMT 2
7.5.1-Nightly202010310225 934.7 KB Sat, 31 Oct 2020 02:27:28 GMT 10
7.4.1-Nightly202009221831 872.26 KB Tue, 22 Sep 2020 18:33:40 GMT 9
7.3.0-Nightly201911222308 842.29 KB Fri, 22 Nov 2019 23:10:06 GMT 32
7.0.0-Nightly201806082048 405.44 KB Fri, 08 Jun 2018 20:52:14 GMT 83