SharpArchitecture / Fluent NHibernate

送分小仙女□ 提交于 2020-01-05 07:08:41

问题


Does DomainSignature attribute create unique constrain in DB?

Does Fluent NHibernate 1.1.0.685 supports NaturalId correctly?


回答1:


Domain signature doesn't create constraints in DB.

Yes Fluent NH supports Natural ID by

map.NaturalId()
      .Property(x => x.Name)
      .Property(x => x.NickName);

syntax



来源:https://stackoverflow.com/questions/4489576/sharparchitecture-fluent-nhibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!