Consuming OData Services

Any .NET client application can consume an OData service like the sample service you built previously. To make this happen, you must use special client libraries for OData. Microsoft offers the Microsoft.OData.Client library as a NuGet package, which allows you to query and manipulate data over an OData v4 service. Microsoft has also created an extension for Visual Studio called OData Client Code Generator, which simplifies the generation of proxy classes to interact with data models exposed by an OData service. Unfortunately, this tools is only available for the Visual C# programming language, so you need to perform some more manual work. The next subsections explain how to consume the preceding OData service from a ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.