【发布时间】:2014-05-15 13:25:26
【问题描述】:
有两个表 DocumentType 和 EmployeeDocumentType。 EmployeeDocumentType w.r.t DocumentType 中有多行。
我需要在 EmployeeDocumentType 中使用多对一映射。我正在使用以下语法:
<many-to-one name="DocumentType" column="DocumentTypeId" class="DocumentType" />
EmployeeDocumentType 对象中的数据正确,但是当我将详细信息保存到 EmployeeDocumentType 时,它给出了错误,
此 SqlParameterCollection 的索引 14 无效,Count=14。
可能是什么问题。
【问题讨论】:
标签: nhibernate nhibernate-mapping many-to-one