Software Developer
Captain Codeman
Who is Captain Codeman? Ok, so I may not be too good at hiding my not-too-secret identity ... and Ok, I admit too that I probably don't have any real super powers or a cape (can you just buy those?). I am a software developer though and thought I'd share some of the things I discover as I try to improve my own skills and abilities.
Posts by Captain Codeman
When to use RenderAction vs RenderPartial with ASP.NET MVC
Feb 21st
At first glance, RenderAction and RenderPartial both do a very similar thing – they load ‘some other content’ into the view being rendered at the place they are called. Personally, I think they should be used for different scenarios so these are my thoughts on where each one should be used and why. First though,
RenderSubAction alternative to RenderAction for Sub-Controllers in MVC
Feb 21st
The ASP.NET MVC Futures assembly contains several RenderAction extension methods for HtmlHelper to allow another action to be rendered at some point within a view. Typically, this allows each controller to handle different responsibilities rather than things being combined into the parent. So, for example, a PersonController is responsible for retrieving and assembling the model
NHibernate.Search using Lucene.NET Full Text Index (3)
Apr 26th
In Part 1 we looked at how to create a full-text index of NHibernate persisted domain objects using the Lucene.NET project. Part 2 then looked at how to query the index complete with query-parsing and hit-highlighting of the results. Now that we have a full-text index there are other things that we can use it
NHibernate.Search using Lucene.NET Full Text Index (2)
Mar 30th
In NHibernate.Search using Lucene.NET Full Text Index (Part 1) we looked at setting up the NHibernate.Search extension to add full-text searching of NHibernate-persisted objects. Next, we’ll look at how we can perform Google-like searches using the Lucene.NET index and some tips on displaying the results including highlighting the search-terms. Our Book class has the Title,
Use Aliases to develop against SQL Server on different machines
Mar 13th
This is a little tip that I've found useful when working on projects on different machines. If you have a desktop machine and separate database server then you generally wouldn't need to have SQL server running locally – either the full version OR the SQL Express edition. So, within your app the connection string would