I have a column which I need to allow nulls, but I want a unique constraint to prevent duplicate values when the value is not null.
I’ve done this by using a filtered index as follows:
CREATE UNIQUE NONCLUSTERED INDEX EventBooking_AssociatedSlot_IUC
ON [Core].[EventBooking] (AssociatedSlot)
WHERE AssociatedSlot IS NOT NULL
Is it possible to create this index with Fluent NHibernate?
thanks in advance.
It seems this is not currently possible