Michael Crump bio photo

Michael Crump

Works at Microsoft on Azure

Twitter Google+ LinkedIn Instagram Github Youtube

New series called “Producing and Consuming OData in a Silverlight and Windows Phone 7 application.” You can read any of the parts you may have missed by clicking on the links below.

  1. Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 1) – Creating our first OData Data Source and querying data through the web browser and LinqPad.
  2. Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 2 ) – Consuming OData in a Silverlight Application.
  3. Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 3)  – Consuming OData in a Windows Phone 7 Application.
  4. Producing and Consuming OData in a Silverlight and Windows Phone 7 application. (Part 4)  – Consuming OData in a Windows Phone 7 Application (Mango).

To refresh your memory on what OData is:

The Open Data Protocol (OData) is simply an open web protocol for querying and updating data. It allows for the consumer to query the datasource (usually over HTTP) and retrieve the results in Atom JSON or plain XML format including pagination ordering or filtering of the data.

To recap what we learned in the previous section on Silverlight 4:

  • We began by creating the User Interface and setting up our bindings on our elements. 
  • We added a service reference pointing to our OData Data Service inside our project. 
  • Finally we added code behind to sort and filter the data coming from our OData Data Source into our Silverlight 4 Application.

In this article I am going to show you how to consume an OData Data Source using Windows Phone 7. After you have read this series of articles you should be able to produce and consume an OData Data Source using the web browser LinqPad Silverlight 4 and Windows Phone 7. We have also learned how to do some basic sorting and filtering using all the same. Now that you are equipped with a solid understanding of producing and consuming OData Data Services you can begin to use this in your own applications. I want to thank you for reading this series and if you ever have any questions feel free to contact me.

    The Full Article

    The full article is hosted on SilverlightShow and you can access it by clicking here. Don’t forget to rate it and leave comments if you have any problems.