webapinetcore - Microsoft.AspNetCore.OData 9.5.0-Nightly202606031929

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget Microsoft.AspNetCore.OData  ~> 9.5.0-Nightly202606031929
Copy to clipboard

> choco install Microsoft.AspNetCore.OData --version 9.5.0-Nightly202606031929 --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.5.0-Nightly202606031929" -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 8.0
    • Microsoft.OData.Core (>= 8.4.0 && < 9.0.0)
    • Microsoft.OData.Edm (>= 8.4.0 && < 9.0.0)
    • Microsoft.OData.ModelBuilder (>= 2.0.0 && < 3.0.0)
    • Microsoft.Spatial (>= 8.4.0 && < 9.0.0)
  • .NETFramework 8.0: 8.0.0.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Timestamp: 6/3/2026 7:29:56 PM

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

146 total downloads
0 downloads for version 9.5.0-Nightly202606031929
Download (450.82 KB)
Download symbols (156.18 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
9.5.0-Nightly202606260546 450.7 KB Fri, 26 Jun 2026 05:54:45 GMT 0
9.5.0-Nightly202606230529 450.7 KB Tue, 23 Jun 2026 05:40:13 GMT 0
9.5.0-Nightly202606221449 450.7 KB Mon, 22 Jun 2026 14:57:30 GMT 0
9.5.0-Nightly202606031929 450.82 KB Wed, 03 Jun 2026 19:39:16 GMT 0
9.5.0-Nightly202606021941 450.8 KB Tue, 02 Jun 2026 19:49:30 GMT 0
9.5.0-Nightly202606010557 450.7 KB Mon, 01 Jun 2026 06:05:55 GMT 0
7.8.1-prerelease-Microsoft-Nightly202606241740 1 MB Wed, 24 Jun 2026 17:53:28 GMT 0
7.8.1-prerelease-Microsoft-Nightly202606090214 1 MB Tue, 09 Jun 2026 02:26:51 GMT 0
7.8.0-prerelease-Microsoft-Nightly202606041326 1 MB Thu, 04 Jun 2026 13:33:51 GMT 0
7.8.0-Nightly202606030031 1023.99 KB Wed, 03 Jun 2026 00:38:53 GMT 0
7.7.9-Nightly202606250710 1022.5 KB Thu, 25 Jun 2026 07:18:13 GMT 0
7.7.9-Nightly202606180715 1023.55 KB Thu, 18 Jun 2026 07:23:40 GMT 0
7.7.9-Nightly202606081411 1023.53 KB Mon, 08 Jun 2026 14:19:18 GMT 0
7.7.9-Nightly202606050712 1022.51 KB Fri, 05 Jun 2026 07:20:21 GMT 0
7.7.9-Nightly202606010735 1022.53 KB Mon, 01 Jun 2026 07:47:52 GMT 0
7.5.1-Nightly202010310225 934.7 KB Sat, 31 Oct 2020 02:27:28 GMT 14
7.4.1-Nightly202009221831 872.26 KB Tue, 22 Sep 2020 18:33:40 GMT 11
7.3.0-Nightly201911222308 842.29 KB Fri, 22 Nov 2019 23:10:06 GMT 34
7.0.0-Nightly201806082048 405.44 KB Fri, 08 Jun 2018 20:52:14 GMT 87