标签: string nhibernate unique
我有Id,FkAnotherObject和string的示例'object'。我必须使用哪个属性才能在表中包含唯一的字符串。有没有选择这样做?
答案 0 :(得分:0)
unique="true"应该这样做: - )
unique="true"
或者,unique-key允许您创建多列唯一约束。
unique-key