Lately I’ve been working with ASP.NET Web API and I had to solve a couple of issues regarding data validation when sending a request to the API. Problem #1 When exposing an operation that receives several optional parameters (i.e. to perform a search), sending invalid parameters will not be detected by the API. Example: Given... read more
During the last weeks I’ve been working in an application that uses Entity Framework (code-first) and I had a performance-related issue that I thought worth sharing. After implementing some features in the app I noticed some performance issues, so I decided to add MiniProfiler and see how things were going under the hood. The cause... read more
Disclaimer: the aim of this post is not to show a comprehensive list of the different techniques that can be used to write a fluent API, tons of good information is out there on the web and. If you are very interested in the subject, please take a look at Martin Fowler’s Domain-Specific Languages. Now... read more
During the last couple of months I’ve been working for the p&p guys at Microsoft, developing the sample application for a new guide around Windows Azure hybrid application integration. One of the components of the sample solution is a console application that performs all the steps required to have the ACS and Service Bus namespaces... read more