[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 OData client…


Using ASP.NET output caching with Data Services

A lot of our customers have asked us how to cache results from their Data Service. Which is why I want to point you to this excellent post by Peter Qian (a developer on the Data Services team) that shows you how to setup ASP.NET output caching. It lays out what is required very clearly….


Data Services Streaming Provider Series: Implementing a Streaming Provider (Part 1)

The Open Data Protocol (OData) enables you to define data feeds that also make binary large object (BLOB) data, such as photos, videos, and documents, available to client applications that consume OData feeds. These BLOBs are not returned within the feed itself (for obvious serialization, memory consumption and performance reasons). Instead, this binary data, called…


OData and Authentication – Part 6 – Custom Basic Authentication

You might remember, from Part 5, that Basic Authentication is built-in to IIS. So why do we need ‘Custom’ Basic Authentication? Well if you are happy using windows users and passwords you don’t. That’s because the built-in Basic Authentication, uses the Basic Authentication protocol, to authenticate against the windows user database. If however you have…


OData and Authentication – Part 5 – Custom HttpModules

In the last post we saw how to add custom authentication inside your Data Service using the ProcessingRequest event. Unfortunately that approach means authentication is not integrated or shared with the rest of your website. Which means for all but the simplest scenarios a better approach is needed: HttpModules. HttpModules can do all sort of…


OData and Authentication – Part 4 – Server Side Hooks

If you secure an OData Service using Windows authentication – see Part 2 to learn how – everything works as expected out of the box. What however if you need a different authentication scheme? Well the answer as always depends upon your scenario. Broadly speaking what you need to do depends upon how your Data…