Fluent NHibernate Solution to enable SchemaExport to create HiLo colum

added by FlukeFan
2/6/2012 7:40:26 AM

0 Kicks, 203 Views

I spent a few hours recently trying to figure out why Fluent NHibernate (FNH) wasn’t doing what I thought it should be doing when using the HiLo generator conventions and then using the SchemaExport tool to generate my schema. After eventually looking at the hbm files that FNH was producing for a possible error and to make sure that I was using FNH correctly, I realised that FNH wasn't the problem, and that the problem lies within SchemaExport. I have created a solution ... for FNH shown below.