Explicitly Specifying the Identity Column Value using Fluent NHibernate

I recently ran into a situation where I was saving to a database table that did not have an auto-incrementing identity column. I didn’t realize that at the time when I was setting up my NHibernate mapping and it caused me a headache for about half an hour attempting to figure out what was causing the problem.

Continue reading

Need to dump an object? Serialize it into XML.

I recently found myself wanting to dump an object into a human readable text format for debugging purposes. I first looked into Microsoft’s ObjectDumper class included in the samples folder of Visual Studio 2008.

It works okay but by default it outputs to the console and isn’t formatted very well. I spent about half an hour modifying it to my liking but I still couldn’t get it looking right and just wanted something easier to work with.

Continue reading

My Road to Software Development

My journey to becoming a software developer was not the straight and narrow.

18 and under

When I was in my youth, I had no idea what I wanted to do as a career and never really gave it much thought. In my teens, I grew quite fond of the computer and at that time figured I would end up doing something involving technology. I wasn’t one of those nerds who was programming at the age of 12 or anything although I probably was considered a bit of a nerd because I knew about computers and wore glasses.

Continue reading