webapinetcore - Microsoft.AspNetCore.OData 8.2.6-Nightly202411131315

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget Microsoft.AspNetCore.OData  ~> 8.2.6-Nightly202411131315
Copy to clipboard

> choco install Microsoft.AspNetCore.OData --version 8.2.6-Nightly202411131315 --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 "8.2.6-Nightly202411131315" -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

  • .NETCoreApp 3.1
    • Microsoft.OData.Core (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.Edm (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.ModelBuilder (>= 1.0.9 && < 2.0.0)
    • Microsoft.Spatial (>= 7.20.0 && < 8.0.0)
  • .NETFramework 5.0
    • Microsoft.OData.Core (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.Edm (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.ModelBuilder (>= 1.0.9 && < 2.0.0)
    • Microsoft.Spatial (>= 7.20.0 && < 8.0.0)
  • .NETFramework 6.0
    • Microsoft.OData.Core (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.Edm (>= 7.20.0 && < 8.0.0)
    • Microsoft.OData.ModelBuilder (>= 1.0.9 && < 2.0.0)
    • Microsoft.Spatial (>= 7.20.0 && < 8.0.0)
  • .NETCoreApp 3.1: 3.1.0.0
  • .NETFramework 5.0: 5.0.0.0
  • .NETFramework 6.0: 6.0.0.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Timestamp: 11/13/2024 1:15:26 PM

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=DigiCert Timestamp 2024, O=DigiCert, C=US
  SHA1 hash: DBD385EE62DBD23E7BE4F67148508724D5865B45
  SHA256 hash: 76769FA8F2632F1F430B3A2330AED65675FED773DB05D665B9059398438F9ADB
  Issued by: CN=DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA, O="DigiCert, Inc.", C=US
  Valid from: 9/26/2024 12:00:00 AM to 11/25/2035 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

OData (.NET Foundation)

Project URL

http://github.com/OData/AspNetCoreOData

License

MS-EULA

Tags

Microsoft AspNetCore WebApi OData

Signature

Validation: Valid

Info

106 total downloads
0 downloads for version 8.2.6-Nightly202411131315
Download (1.18 MB)
Download symbols (438.7 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
9.1.0-Nightly202411140508 415.28 KB Thu, 14 Nov 2024 05:18:43 GMT 0
9.1.0-Nightly202411131405 415.27 KB Wed, 13 Nov 2024 14:15:24 GMT 0
9.1.0-Nightly202411131310 415.19 KB Wed, 13 Nov 2024 13:18:18 GMT 0
9.1.0-Nightly202411130508 415.21 KB Wed, 13 Nov 2024 05:17:00 GMT 0
9.1.0-Nightly202411121532 415.26 KB Tue, 12 Nov 2024 15:42:11 GMT 0
9.1.0-Nightly202411120859 415.21 KB Tue, 12 Nov 2024 09:09:44 GMT 0
9.0.0-Nightly202411080509 415.21 KB Fri, 08 Nov 2024 05:18:00 GMT 0
9.0.0-Nightly202411070509 414 KB Thu, 07 Nov 2024 05:16:45 GMT 0
9.0.0-Nightly202410310507 414.01 KB Thu, 31 Oct 2024 05:16:04 GMT 0
9.0.0-Nightly202410280509 412.75 KB Mon, 28 Oct 2024 05:16:57 GMT 0
8.2.6-Nightly202411131315 1.18 MB Wed, 13 Nov 2024 13:22:44 GMT 0
8.2.6-Nightly202411120846 1.17 MB Tue, 12 Nov 2024 08:55:28 GMT 0
7.7.7-Nightly202411120517 1022.4 KB Tue, 12 Nov 2024 05:24:06 GMT 0
7.7.7-Nightly202411110805 1022.41 KB Mon, 11 Nov 2024 08:12:26 GMT 0
7.7.6-Nightly202411070518 1022.42 KB Thu, 07 Nov 2024 05:27:11 GMT 0
7.5.1-Nightly202010310225 934.7 KB Sat, 31 Oct 2020 02:27:28 GMT 2
7.4.1-Nightly202009221831 872.26 KB Tue, 22 Sep 2020 18:33:40 GMT 0
7.3.0-Nightly201911222308 842.29 KB Fri, 22 Nov 2019 23:10:06 GMT 27
7.0.0-Nightly201806082048 405.44 KB Fri, 08 Jun 2018 20:52:14 GMT 77