【问题标题】:NHibernate and many to many mappingNHibernate 和多对多映射
【发布时间】:2009-10-19 23:04:53
【问题描述】:

我有 3 个表 organization(id, name, and etc) organizationContact(organizationId, contactId, status) contact(id, name, email) 如何从 organizationContact 进行多对多映射和使用状态列?

【问题讨论】:

    标签: nhibernate orm mapping


    【解决方案1】:

    对于严格的多对多映射,您只需在映射表中拥有 organizationId 和 contactId。添加状态列需要从 organizationContact 中创建一个适当的实体。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-12
      • 2011-12-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-29
      相关资源
      最近更新 更多