Garry Pilkington


Application Developer
Liverpool, UK

Browse by Tags

All Tags » C# » .NET (RSS)
Setting Up MVC Using StructureMap, Moq and NUnit...Quickly
When I was first attracted to the Microsoft MVC Framework, one of my main ambitions was to develop using a more test driven approach. There are ways to include Unit testing with WebForms, but the friction was just too much to justify on the web projects...
Multiple Strongly Typed Partial Views in MVC
Creating strongly typed views with the ASP.Net MVC framework is really easy, but what if you want to have multiple types on the same view? One way to achieve this is to create partial views for each type and creating a combined view model. Then the view...
Posted: Oct 20 2009, 09:29 AM by capgpilk | with 12 comment(s)
Filed under: , , ,
LINQ Projection
just recently I have been doing quite a bit of work with LINQ and L2S in particular. Although LINQ is nothing new now and I am sure the vast majority of readers out there have had some form of introduction to LINQ. However one of the great things that...
Posted: Sep 08 2009, 10:00 AM by capgpilk | with 2 comment(s)
Filed under: , ,
LINQ to XML Quick Brain Dump
LINQ to XML is a simple toolset that allows developers to easily interact with XML, whether it be in file form of on the wire in string form. Write to an XML file There are a few methods within the System.Xml.Linq namespace which make this interaction...
Posted: Aug 25 2009, 09:10 PM by capgpilk | with 3 comment(s)
Filed under: , , ,
Why I prefer c# over VB
A couple of weeks back I was asked by a friend of a friend why I code in c# over VB. I didn’t give him a very good answer at the time as I just couldn’t pinpoint the reason. Since then I have had a real good think about it and have come to this conclusion...
Posted: Feb 11 2009, 01:52 PM by capgpilk | with 10 comment(s)
Filed under: , , ,
How do you test private methods?
This morning I read a post by Davy Brion who was explaining a technique to test private methods. Although the post was interesting, it was a comment by Rafferty Uy that got me thinking. He suggests that you make your method protected instead of private...
Posted: Nov 21 2008, 04:42 PM by capgpilk | with 5 comment(s)
Filed under: , ,
Singleton in action
I had one of those 'wow that's cool' moments last weekend. This sounds really sad and you may think that I need a life, but I was playing with the code for a basic singleton pattern found at:- http://www.dofactory.com/Patterns/PatternSingleton.aspx I...
Posted: Oct 28 2008, 02:11 PM by capgpilk | with no comments
Filed under: , , ,
Zip up those bak files
This is something I have come across during our SQL migration which I didn't even think about. You can zip up your bak files and save considerable hard drive space. We have a 14 gig database which happily compresses down to 2 gig. With hard drives coming...
Posted: Feb 26 2008, 04:45 PM by capgpilk | with 10 comment(s)
Filed under: , , ,
Hello out there
Hello everyone in asp.net weblog land. Firstly can I say a big thanks to Joe for allowing us mere mortals in to this community. I am Garry Pilkington and I am an application developer in the UK. I work for a small oil recycling/transport company just...
Posted: Jan 24 2008, 02:44 PM by capgpilk | with 1 comment(s)
Filed under: , ,
More Posts