Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fluent NHibernate 3 uniquekey custom constraint name

I am trying to give a custom Unique Constraint Name as follows:

Map(x => x.Name).UniqueKey("MY_CONSTRAINT_NAME").Column("FUNCTION_NAME");

The Field is mapped with a unique constraint but the constraint name is self-managed and doesn't take the name I chose ("MY_CONSTRAINT_NAME") Is this a BUG or am I using it incorrectly?

like image 924
user756037 Avatar asked May 31 '11 15:05

user756037


1 Answers

NHibernate itself does not allow you to supply a name for the unique key. https://nhibernate.jira.com/browse/NH-1955

like image 148
Robert Dusek Avatar answered Sep 18 '22 13:09

Robert Dusek