Nhibernate,如何制作独特的字符串列

时间:2013-05-09 08:27:41

标签: string nhibernate unique

我有Id,FkAnotherObject和string的示例'object'。我必须使用哪个属性才能在表中包含唯一的字符串。有没有选择这样做?

1 个答案:

答案 0 :(得分:0)

unique="true"应该这样做: - )

或者,unique-key允许您创建多列唯一约束。