OData

Create and consume RESTful APIs in a simple and standard way

WCF Data Service 5.0.2 Released

We’re happy to announce the release of WCF Data Services 5.0.2. What’s in this release This release contains a number of bug fixes: Fixes NuGet packages to have explicit version dependencies Fixes a bug where WCF Data Services client did not send the correct DataServiceVersion header when following a nextlink Fixes a bug ...

OData 101: Bin deploying WCF Data Services

TL;DR: If you’re bin-deploying WCF Data Services you need to make sure that the .svc file contains the right version string (or no version string). The idea for this post originated from an email I received yesterday. The author of the email, George Tsiokos (@gtsiokos), complained of a bug where updating from WCF Data Services 5.0 to 5.0.1 ...

OData 101: Using the [NotMapped] attribute to exclude Enum properties

TL;DR: OData does not currently support enum types, and WCF Data Services throws an unclear exception when using the EF provider with a model that has an enum property. Mark the property with a [NotMapped] attribute to get around this limitation. In today’s OData 101, we’ll take a look at a problem you might run into if you have an Entity...

OData 101: Building our first OData-based Windows Store app (Part 2)

Download the sample code In the previous blog post, we walked through the steps to build an OData-enabled client using the new Windows UI. In this blog post, we’ll take a look at some of the code that makes it happen. ODataBindable, SampleDataItem and SampleDataGroup In the walkthrough, we repurposed SampleDataSource.cs with some code ...

OData 101: Building our first OData-based Windows Store app (Part 1)

Download the sample code In this OData 101 we will build a Windows Store app that consumes and displays movies from the Netflix OData feed. Specifically, we will focus on getting data, displaying it in the default grid layout, and enabling search functionality. Because there’s a lot of details to talk about in this blog post, we’ll...

WCF Data Services 5.0.2-rc Prerelease

We’re happy to announce that we’re ready for another public RC that includes a whole bunch of bug fixes. What is in the prerelease This prerelease contains a number of bug fixes: Fixes NuGet packages to have explicit version dependencies Fixes a bug where WCF Data Services client did not send the correct DataServiceVersion header ...