【问题标题】:SharpArchitecture / Fluent NHibernateSharpArchitecture / Fluent NHibernate
【发布时间】:2010-12-20 12:24:26
【问题描述】:

DomainSignature 属性是否在 DB 中创建唯一约束?

Fluent NHibernate 1.1.0.685 是否正确支持 NaturalId?

【问题讨论】:

    标签: c# nhibernate fluent s#arp


    【解决方案1】:

    域签名不会在 DB 中创建约束。

    是的,Fluent NH 通过

    支持 Natural ID
    map.NaturalId()
          .Property(x => x.Name)
          .Property(x => x.NickName);
    

    语法

    【讨论】:

    • 在我的配置中 NaturalId 不适用于引用对象(外键)。
    猜你喜欢
    • 2011-04-10
    • 1970-01-01
    • 1970-01-01
    • 2011-02-27
    • 1970-01-01
    • 2010-11-17
    • 2010-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多