I need to manage an additionnal Auto Increment column using Fluent NHibernate.
All my domain classes use Assigned Guid as ID but in a particular entity i need an additionnal auto increment value.
I've tried the following mapping, the column is well created in SQL Server but the Identity Specification isn't set.
Id(x => x.OrderId).GeneratedBy.Assigned();
Map(x => x.TicketNumber).ReadOnly().Generated.Always().Not.Nullable();
Any help ?