开发者

Fluent NHibernate 3 uniquekey custom constraint name

开发者 https://www.devze.com 2023-03-09 23:30 出处:网络
I am trying to give a custom Unique Constraint Name as follows: Map(x => x.Name).UniqueKey(\"MY_CONSTRAINT_NAME\").Column(\"FUNCTION_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开发者_如何学Python 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消