I've got a column in a table that needs to be unique when a value is present, but should allow multiple NULL values. In SQL, I can do this using this answer, but is there a way to configure this using Fluent NHibernate?
Map(x => x.UniqueProperty).Unique().Nullable();
...does not work, and creates an unfiltered unique constraint that does not allow multiple NULL values.