There are two tables DocumentType and EmployeeDocumentType. There are multiple rows in EmployeeDocumentType w.r.t DocumentType.
I need to use many to one mapping in EmployeeDocumentType. I am using following syntax:
<many-to-one name="DocumentType" column="DocumentTypeId" class="DocumentType" />
Data is coming correctly in EmployeeDocumentType object, but when I save details into EmployeeDocumentType, it is giving error as,
Invalid index 14 for this SqlParameterCollection with Count=14.
what might be the issue.