How to create your own ASP .NET MVC model binder

11 August, 2014.

Model binding is the process of converting POST data or data present in the Url into a .NET object(s). ASP .NET MVC makes this very simple by providing the DefaultModelBinder. You’ve probably seen this in action many times (even if you didn’t realise it!), but did you know you can easily write your own?A typical ASP .NET MVC ControllerYou’ve probably written or seen code like this many hundreds of times;Where did Id come from? It probably came from one of three sources; the Url (), the query…

Continue reading

Should I get certified?

28 July, 2014.

The value of Microsoft certifications has split opinion for years, and both camps feel very passionate about their side of the argument. In this post I’ll try and look constructively at the value of Microsoft certifications, so you can make the decision for yourself. I’m specifically talking about Microsoft developer certifications here, but the concepts/points could likely be applied to any certifying body.1. What are the current Microsoft Certification paths (for developers)?There is a route…

Continue reading

How to pass Microsoft Exam 70-487 (Developing Microsoft Azure and Web Services) in 30 days

26 July, 2014.

Before you continue reading this blog post, you need to be aware of the following; This is not a “quick fix” or an “easy solution”. I have not discovered some secret formula to guarantee you pass with 100% marks every time. The exam is genuinely challenging and the only way you are going to pass is by working hard! You will not find any brain dumps here! If you’re afraid of working hard to achieve your goals, you best leave now … Still Here? Congratulations, you are taking your first steps…

Continue reading

Easy WCF Security and authorization of users

19 July, 2014.

There are several steps involved in making your WCF service secure, and ensure that clients consuming your service are properly authenticated. WCF uses BasicHttpBinding out-of-the-box, which generates SOAP envelopes (messages) for each request. works over standard HTTP, which is great for completely open general purpose services, but not good if you are sending sensitive data over the internet (as HTTP traffic can easily be intercepted). This post discusses how to take a basic WCF service…

Continue reading

Entity Framework - Use a Guid as the primary key

13 July, 2014.

Using a Guid as your tables primary key, when using Entity Framework, requires a little more effort than when using a integer. The setup process is straightforward, after you’ve read/been shown how to do it. The process is slightly different for the Code First and Database First approaches. This post discusses both techniques.Code FirstUsing a Guid as the primary key when taking the code first approach is simple. When creating your entity, add the DatabaseGenerated attribute to your primary key…

Continue reading

My learning hangover

29 June, 2014.

Its virtually unheard of for me to write blog posts about anything that isn’t a language, framework, or technology but my experience recently has affected my life in so many ways it got me thinking…there must be lots of other people who have experienced this, or are heading towards it. It’s too important to not share with the community. I am of course talking about my learning hangover. Note that this is an honest and frank post, and that, to some extent, I am still experiencing a learning…

Continue reading

How to create a RESTful web service using WCF (Part 3 of 3)

04 April, 2014.

RESTful (Representational State Transfer) web services use HTTP verbs to map CRUD operations to HTTP methods. RESTful web services expose either a collection resource (representational of a list) or an element resource (representational of a single item in the list). Other parts in this series: How to create a RESTful web service using WCF (Part 1 of 3) How to create a RESTful web service using WCF (Part 2 of 3)Testing the WCF service using FiddlerIf you haven’t come across Fiddler before, its a…

Continue reading

How to create a RESTful web service using WCF (Part 2 of 3)

03 April, 2014.

RESTful (Representational State Transfer) web services use HTTP verbs to map CRUD operations to HTTP methods. RESTful web services expose either a collection resource (representational of a list) or an element resource (representational of a single item in the list).Create the WCF service contractEvery WCF service begins with a service contract. A service contract defines what operations are supported/provided by the service. An operation contract is the definition of a method that can be…

Continue reading

How to create a RESTful web service using WCF (Part 1 of 3)

02 April, 2014.

RESTful (Representational State Transfer) web services use HTTP verbs to map CRUD operations to HTTP methods. RESTful web services expose either a collection resource (representational of a list) or an element resource (representational of a single item in the list).HTTP verbs are used as follows;Create (POST) > create a new resource.Read (GET) > retrieve one or many resources.Update (PUT) > update an existing resourπce.Delete (DELETE) > delete an existing resource.This tutorial demonstrates to…

Continue reading