August 13, 2012

Unique number counter system using SQL Server identity fields and Fluent NHibernate

Filed under: Development,NHibernate,SQL Server — Tags: , , — Darrin Maidlow @ 6:00 am

**UPDATE – As we moved forward with our project this method turned out to be a little less awesome than I thought when I put it together.   I’ve left this post here though as I am not ashamed of my failures! There is also some neat stuff in here with setting up the identity fields using nHibernate.

Recently I needed to create a generic re-usable system to generate system wide unique counters using SQL server tables and identity fields to handle the number generation.  One of the key requirements was to be able to specify the identity seed, but in a re-usable way of course.

Generic Class and Class Map

So lets start this off with a base class to define the counter object:

(more…)

August 6, 2012

Crane on a mountain top

Filed under: General — Tags: — Darrin Maidlow @ 10:30 am

My wife and I recently took a mini vacation and spent a few nights in Banff, Alberta.  Man I’ve missed that town…  We took the gondola up to the top of Suplhur mountain and there amongst the clouds at the end of the top of the mountain hike I found this large hunk of rock near the edge of a cliff.  Being a P90X/2 junky I felt compelled to on top of this rock, 7350 feet above sea level, near the edge of the cliff and share it with the world. 

SAM_1621

Keep Reading

Powered by WordPress

Switch to our mobile site