OData

Create and consume RESTful APIs in a simple and standard way

[Announcement] The ASP.NET Web API 2.2 for OData release and the OData Client Code Generator release

We are very excited to announce the availability of nightly builds on MyGet for ASP.NET Web API 2.2 for OData v4.0 along with OData Client Code Generator for writing OData v4 clients. The Web API 2.2 release is particularly noteworthy as it is the first Web API release with support for OData v4 with selected highly demanded ...

[Tutorial & Sample] Use Enumeration types in OData

Enumeration is a very common data type in various data models. Enumeration types are useful means to represent data that needs to support certain programmatic options (such as the ability to detect one or more options are selected). OData v4 now supports Enumeration types, along with Primitive types, Complex types, and Entity types. And we ...

[Tutorial & Sample] Using Parameter Alias to simplify the OData URL

Are you suffering from typing complex parameter values in URL? Or even make it worse you need to type it more than once? To solve this problem, now Microsoft.OData.Core.dll 6.0 supports parameter alias in request URL, such as: ~/People?$filter=LastName eq @name and contains(Description, @name)&@name=’Bob’ It is implemented by ...

[Tutorial & Sample] Containment is Coming with OData V4

Before OData V4, every entity set must be accessed from top-level even it is in a containment relationship with other set. For example, assume a schema where Order Lines (Type: “OrderLine”, EntitySet: “OrderLines”) live within Orders (Type: “Order”, EntitySet: “Orders”). Then, Orders have an “id” member that is the key, ...

[Tutorial & Sample] How to use OData Client Code Generator to generate client-side proxy class

Edited on July 09, 2014 by updating “Add OData Client Proxy File” for V2.0.0 and adding "Appendix" part. Please refer to "OData Client Code Generator 2.0.0 release" for V2.0.0 release notes Edited on Apr 29, 2014 by adding "Upgrade the Project Dependencies to the Most Recent Version" part. In this tutorial, you will generate an ...

[Tutorial & Sample] Use Singleton to define your special entity

Ever had a special entity where there can be only one of its kind, but bothered by having to define a one-element entity set for it? Ever wanted to request a special entity but bothered by needing to find out its key first? Use a singleton! Singleton is newly introduced in OData V4, to allow developers name such special entity, and it can be ...

New and improved EULA!

TL;DR: You can now (legally) use our .NET OData client and ODataLib on Android and iOS. Backstory For a while now we have been working with our legal team to improve the terms you agree to when you use one of our libraries (WCF Data Services, our OData client, or ODataLib). A year and a half ago, we announced that our EULA would include a ...

New version of OData Validator

The OData team has been working on updating the OData Validator tool to support the new JSON format validation. We are pleased to announce that the tool now supports validating your V3 service for all three formats – ATOM, old JSON format (aka JSON Verbose) and the new JSON format. We are also working on adding OData V4 service validation ...

WCF Data Services 5.6.0 Release

Recently we released updated NuGet packages for WCF Data Services 5.6.0. You will need the updated tooling (released today) to use the portable libraries feature mentioned below with code gen. What is in the release: Visual Studio 2013 Support The WCF DS 5.6.0 tooling installer has support for Visual Studio 2013. If you are using Visual ...