NHibernate Elt场 [英] NHibernate elt field

查看:56
本文介绍了NHibernate Elt场的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么NHibernate会为多对多映射生成一个int类型的名为'elt'的字段吗? 我想知道为什么我需要它. 谢谢

Does anyone know why NHibernate generates a field named 'elt' of type int for a many to many mapping? I'm wondering why I need it. Thanks

推荐答案

"elt"字段是多对多映射中元素的外键.在联接表中,您应该看到两个外键列,id(对于父项)和elt(对于元素).如果愿意,可以使用其他名称.这些是默认设置.

The "elt" field is the foreign key to the element in the many-to-many mapping. In the join table, you should see two foreign key columns, id (for the parent) and elt (for the element). You can use different names if you like; these are defaults.

这篇关于NHibernate Elt场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆