Wednesday, January 30, 2013

Getting started with ASP.NET WebAPI OData in 3 simple steps

Getting started with ASP.NET WebAPI OData in 3 simple steps: With the upcoming ASP.NET 2012.2 release, we’ll be adding support for OData to WebAPI. In this blog post, I’ll go over the three simple steps you’ll need to go through to get your first OData service up and running: Creating your EDM model Configuring an OData route Implementing an OData controller Before we dive in, the code snippets in this post won’t work if you’re using the RC build. You can upgrade to using our latest nightly build by taking a look at this helpful blog post . 1) Creating your EDM model First, we’ll create an EDM model to represent the data model we want to expose to the world. The ODataConventionModelBuilder class makes this this easy by using a set of conventions to reflect on your type and come up with a reasonable model...(read more)

DIGITAL JUICE

No comments:

Post a Comment

Thank's!