Pages

Thursday, July 4, 2013

NHibernate HiLo Identity Generator on SQL Azure

NHibernate POID Generators

NHibernate supports several POID (Persistent Object ID) Generators, including: Identity, Guid, Guid.Comb, and HiLo.


You can find a good explanation here, about the various strategies.

Avoiding Identity and going with Guid.Comb or HiLo is a good practice, but there's a slight problem when your Database is SQL Azure...