Microsoft.OData.Client 8.3.0

Microsoft.OData.Client

The Microsoft.OData.Client library allows you to consume data from and interact with OData services from .NET applications. It provides LINQ-enabled client APIs for issuing OData queries and constructing and consuming OData JSON payloads. It supports OData v4 and v4.01.

Installation

You can install the Microsoft.OData.Client package via NuGet:

dotnet add package Microsoft.OData.Client

Or via the NuGet Package Manager Console:

Install-Package Microsoft.OData.Client

Getting Started

Creating an OData Client

To create an OData client, you can use the OData Connected Service in Visual Studio to generate strongly-typed client code for your OData service.

  1. Install the OData Connected Service extension:

  2. Add the OData Connected Service to your project:

    • Right-click your project in the Solution Explorer.
    • Select Add > Connected Service.
    • Choose OData Connected Service and follow the wizard to configure your service.

Example Usage

Here's a simple example of how to use the generated client to interact with an OData service:

using Microsoft.OData.SampleService.Models.TripPin;

var serviceUri = new Uri("https://services.odata.org/V4/TripPinServiceRW/");
var context = new DefaultContainer(serviceUri);

// Querying data
var people = await context.People.ExecuteAsync();
foreach (var person in people)
{
    Console.WriteLine($"{person.FirstName} {person.LastName}");
}

Documentation

For more detailed information, please refer to the official documentation

Community

Contribution

There are many ways for you to contribute to OData .NET. The easiest way is to participate in discussion of features and issues. You can also contribute by sending pull requests of features or bug fixes to us. Contribution to the documentations is also highly welcomed. Please refer to the CONTRIBUTING.md for more details.

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

5.3 Support

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Showing the top 20 packages that depend on Microsoft.OData.Client.

Packages Downloads
Microsoft.Graph
Microsoft Graph API exposes multiple APIs from Microsoft cloud services through a single REST API endpoint. It exposes information about productivity entities and the relationships between these entities, enabling rich navigation between data. Queries that are very difficult before are now simple navigations using this API. Learn more at http://dev.office.com/unifiedAPIs
2
Microsoft.OData.ProxyExtensions
.NET helper classes for developing OData service Client Libraries. Learn more about how to use this library @ https://github.com/Microsoft/Vipr/.
2

Version Downloads Last updated
9.0.0-preview.3 0 11/21/2025
9.0.0-preview.2 2 09/29/2025
9.0.0-preview.1 2 09/29/2025
8.4.3 0 11/13/2025
8.4.2 1 11/02/2025
8.4.0 2 09/29/2025
8.3.0 2 09/29/2025
8.2.4 2 09/29/2025
8.2.3 2 09/29/2025
8.2.2 2 09/29/2025
8.2.1 2 09/29/2025
8.2.0 2 09/29/2025
8.1.0 2 09/29/2025
8.0.2 2 09/29/2025
8.0.1 2 09/29/2025
8.0.0 2 09/29/2025
8.0.0-rc.1 2 09/30/2025
8.0.0-preview.3 2 09/29/2025
8.0.0-preview.2 2 09/29/2025
8.0.0-preview.1 2 09/29/2025
7.22.0 2 09/29/2025
7.21.7 2 09/29/2025
7.21.6 2 09/29/2025
7.21.5 2 09/29/2025
7.21.4 2 09/29/2025
7.21.3 2 09/29/2025
7.21.2 2 09/29/2025
7.21.1 2 09/29/2025
7.21.0 2 09/29/2025
7.20.0 2 09/29/2025
7.19.0 2 09/29/2025
7.18.0 2 09/29/2025
7.17.0 2 09/29/2025
7.16.0 2 09/29/2025
7.15.0 2 09/29/2025
7.14.1 2 09/29/2025
7.14.0 2 09/29/2025
7.13.0 2 09/29/2025
7.12.5 2 09/29/2025
7.12.4 2 09/29/2025
7.12.3 2 09/29/2025
7.12.2 2 09/29/2025
7.12.1 2 09/29/2025
7.12.0 2 09/29/2025
7.11.1 2 09/29/2025
7.10.0 2 09/29/2025
7.9.4 2 09/29/2025
7.9.3 2 09/29/2025
7.9.2 2 09/29/2025
7.9.1 2 09/29/2025
7.9.0 2 09/29/2025
7.8.3 2 09/29/2025
7.8.2 2 09/29/2025
7.8.1 2 09/29/2025
7.7.3 2 09/29/2025
7.7.2 2 09/29/2025
7.7.1 2 09/29/2025
7.7.0 2 09/29/2025
7.7.0-beta 2 09/29/2025
7.6.4 2 09/29/2025
7.6.3 2 09/29/2025
7.6.2 2 09/29/2025
7.6.1 2 09/29/2025
7.6.1-beta 2 09/29/2025
7.6.0 2 09/29/2025
7.6.0-beta 2 09/29/2025
7.5.4 2 09/29/2025
7.5.3 2 09/29/2025
7.5.2 2 09/29/2025
7.5.1 2 09/29/2025
7.5.0 2 09/29/2025
7.4.4 2 09/29/2025
7.4.3 2 09/29/2025
7.4.1 2 09/29/2025
7.4.0 2 09/29/2025
7.4.0-beta3 2 09/29/2025
7.4.0-beta2 2 09/29/2025
7.4.0-beta 2 09/29/2025
6.19.0 2 09/29/2025
6.18.0 2 09/29/2025
6.18.0-beta 2 09/29/2025
6.17.0 2 09/29/2025
6.16.0 2 09/29/2025
6.16.0-beta 2 09/29/2025
6.15.0 2 09/29/2025
6.15.0-beta 2 09/29/2025
6.14.0 2 09/29/2025
6.14.0-rc2 2 09/29/2025
6.14.0-rc 2 09/30/2025
6.14.0-beta 2 09/29/2025
6.13.0 2 09/29/2025
6.13.0-rc 2 09/29/2025
6.13.0-beta 2 09/29/2025
6.12.0 2 09/29/2025
6.12.0-beta 2 09/29/2025
6.11.0 2 09/29/2025
6.10.0 2 09/29/2025
6.9.0 2 09/29/2025
6.8.1 2 09/29/2025
6.8.0 2 09/29/2025
6.7.0 2 09/29/2025
6.6.0 2 09/29/2025
6.5.0 2 09/29/2025
6.4.0 2 09/29/2025
6.3.0 2 09/29/2025
6.2.0 2 09/29/2025
6.1.0 2 09/29/2025
6.0.0 2 09/29/2025
6.0.0-beta1 2 09/29/2025
6.0.0-alpha2 2 09/29/2025
6.0.0-alpha1 2 09/29/2025