Using WCF for exposing and consuming OData

I just published a new article on CodeProject:

http://www.codeproject.com/KB/webservices/WCFDataServices.aspx

It hasn’t been reviewed yet.

In that article I do showcase different ways to use OData to expose your data using WCF Data Services.  The samples grow in complexity, going from the standard hello world of WCF Data Services (ie exposing your DB on a web endpoint), to more advanced scenarios (e.g. transforming your data or even exposing data not coming from a database).  I also show a way to consume OData in a .NET Client.

I believe OData is going to gain more and more tractions as different client and server products include support for it.  It’s a really neat way of exposing data that is queryable but from the middle tier, hence giving you much more flexibility than exposing a database server directly.


Leave a comment