Reputation: 1711
Yes, nit-picky is a good way to describe this... ;)
Does anyone know if you can specify the table and/or column names to use HiLo using Fluent NHibernate? Currently the schema export creates this...
create table hibernate_unique_key (
next_hi INTEGER
)
Upvotes: 3
Views: 1669
Reputation: 1711
Figured it out...
public class IdGenerationConvention : IIdConvention
{
public void Apply(IIdentityInstance instance)
{
instance.GeneratedBy.HiLo("MyTableName", "NextHighValue", "1000");
}
}
Upvotes: 4