Browse by Tags

All Tags » Tips (RSS)
One great benefit of having a Continuous Integration server like TeamCity ( http://www.jetbrains.com/teamcity/ ) building your code is that you can hook into the build process to have it also handle tedious or time-consuming tasks for you, such as running...
Posted by srkirkland | with no comments
Filed under: , , , ,
I was writing conventions for FluentNHibernate the other day and I ran into the need to pluralize a given string and immediately thought of the ruby on rails Inflector.  It turns out there is a .NET library out there also capable of doing word inflection...
Posted by srkirkland | 4 comment(s)
Filed under: , , ,
Validation of user input is integral to building a modern web application, and ASP.NET MVC offers us a way to enforce business rules on both the client and server using Model Validation.  The recent release of ASP.NET MVC 3 has improved these offerings...
With the growing popularity of Fluent NHibernate, mapping files are being used less and less. However if you are using HBM/XML mapping files I recently dug up an old SQL script (originally written by my colleague Alan Lai, since modified slightly by myself...
Posted by srkirkland | 6 comment(s)
Filed under: , , , ,
Recently I developed a strategy which I think works well for authorizing access to user groups (Roles) without using the string names of those groups. The problem I am trying to avoid is doing something like [Authorize(Roles=”AdminRole”)] on a controller...
Posted by srkirkland | 20 comment(s)
Filed under: , , , ,
In an earlier post I talked about writing a Transaction attribute for MVC using NHibernate (though it isn’t really NHibernate specific).  The basic idea is that when an action marked with [Transaction] is executing (OnActionExecuting) you begin a...
        Telerik recently released their Extensions for ASP.NET MVC which include several great controls, the most immediately useful of which is their Grid control.  In the simple (and probably most common) cases the...
I recently setup my first continuous integration build server using JetBrains’ TeamCity product, and it couldn’t have been much simpler. However I kept running into an issue with my test projects whenever I was using NHibernate or SQLite (very useful...
Posted by srkirkland | 3 comment(s)
Filed under: , , ,
I’ve been playing with Visual Studio 2010 Beta a little and one of my favorite new features (and there are many) is the new web.config transformation feature. Web.config transformations are setup so there is one configuration “delta” for each build configuration...
Posted by srkirkland | 9 comment(s)
Filed under: , , ,
I recently setup my first project ever in CodePlex and naturally I am very excited about its tight integration with TFS since my group uses TFS internally for source control as well.  Connecting to CodePlex through the Visual Studio Team Explorer...
Posted by srkirkland | 7 comment(s)
Filed under: , ,
More Posts Next page »