Query composition with the ASP.NET Web API

Having the ASP.NET Web API as a REST service returning data is kind of nice but to be efficient on the wire we don’t want to return more data that required only to discard it in the client.   As we have seen in a previous post just returning a collection data was real easy.   As it turns out changing the service so the client can filter data is almost just as easy. In the previous example we returned an IEnumerable<Product>. All we need to do is change this to return an IQueryable<Product> instead of an IEnumerable<Product> and most … Continue reading Query composition with the ASP.NET Web API

Installing ASP.NET MVC 4 Beta breaks ASP.NET MVC 3 RTM applications

We where just bitten by this one and the problem was not immediately obvious. You will see some error like The name ‘model’ does not exist in the current context or ‘System.Web.WebPages.Html.HtmlHelper’ does not contain a definition for ‘ActionLink’ and no extension method ‘ActionLink’ accepting a first argument of type ‘System.Web.WebPages.Html.HtmlHelper’ could be found (are you missing a using directive or an assembly reference?)     Additionally when you check the IntelliSense of @Html you will not see some of the extension methods like Action() or ActionLink()   Fixing it is not hard one you know the problem. Include the … Continue reading Installing ASP.NET MVC 4 Beta breaks ASP.NET MVC 3 RTM applications

Client side support with the ASP.NET Web API

With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. In order to make life even easier the ASP.NET Web API adds some client support in the form of the HttpClient class. But … Continue reading Client side support with the ASP.NET Web API

Updating data with the ASP.NET Web API

  In the previous blog post I demonstrated how to get started with the ASP.NET Web API and retrieve some products data from the Northwind database. Something that was really easy to do But quite often we want to update data just as much as we want to retrieve it.   A quick recap of REST and HTTP methods used. The convention for REST service as defined by Roy Fielding is to use different HTTP methods to signify our intent with the HTTP request. The HTTP GET method, by far the most commonly used one on the internet, is used … Continue reading Updating data with the ASP.NET Web API

Getting started with the ASP.NET Web API

Some time ago I did a number of blog posts about the beta versions of the WCF Web API. As it turns out the WCF Web API team has moved into the ASP.NET team, a good thing as far as I am concerned, and as a result it is now called ASP.NET Web API. Now this is much more that just a name change. For starters there is very little of the WCF bits still involved, in fact when you use ASP.NET as a host none at all. As a result it takes on quite a few characteristics of ASP.NET … Continue reading Getting started with the ASP.NET Web API

DotNed Podcast: Gert Drapers over SQL Server developer tooling

In deze podcast spreekt Hassan Fadili Gert Drapers over zijn carrière bij Microsoft en zijn sessies data georiënteerde sessies tijdens de laatste TechDays. Gert vertelt onder meer hoe hij bij Microsoft begonnen is en hoe hij de eerste SQL server tools voor developers, ook wel Data-Dude genoemd ontwikkelt heeft. Links: Blog: http://blogs.msdn.com/b/gertd/ SQL Server Data Tools: http://msdn.microsoft.com/en-us/data/hh297027 Get Started with Microsoft SQL Server Data Tools: http://msdn.microsoft.com/en-us/data/hh297028 TechDays sessies:  http://www.techdays.nl/SprekerDetail.aspx?cid=2234 http://www.dotned.nl/PodCasts.aspx?id=26   Enjoy!   [f1] [f2]