These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Invalid index 11 for this SqlParameterCollection with Count=
PostPosted: Wed Sep 30, 2009 9:20 am 
Newbie

Joined: Wed Sep 30, 2009 9:13 am
Posts: 1
So, I'm using the stack of fluent nhibernate, linq to nhibernate, nhibernate burrow and nhibernate (v2.1) in this project I'm working on. I was chugging along and everything was fine until I hit this error...

Invalid index 11 for this SqlParameterCollection with Count=11

A little research on google didn't return many results; this one post:

http://devlicio.us/blogs/derik_whittake ... error.aspx

Talks for a workaround whereby you do not map the foreign key or id fields associated with a HasMany or References entity in mapping classes. Which instead it says to expose only a getter for the id fields from your object...

My question is, is this the proper approach..? Also, if it is the proper approach to fix this issue then how do you set the value on the parent object id fields so that it gets saved..?

Any assistance on how best to address this error would be great..!

Thanks..!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.