This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, i'm using the Mindscape Nhibernate Model Designer version 2.1.365.20597. Every time i need update my model from database, i get the error "Invalid index n for this SqlParameterCollection with Count=m". Searching on web i got that error is caused by a property being mapped multiple times in a class. Debugging my code i've realized that this error only was happening in the classes that i had "many-to-one" associations and the problem could be easily solved by adding the statetments "insert = 'false' update = 'false'" in this associations. The problem is every time that i update my model i must manually change every mapping adding the statments. And i spend about 30 minutes to do this in my 55 mappings. I couldn't find a way to do this on design mode, or even a property where i could do this. Is there a solution to automate this question??? Thanks in advance. |
|
|
This sounds like a problem that we have previously fixed - are you able to update to a current build as we should generate these attributes automatically where required. If you are still having a problem after updating let me know and we can debug this further.
|
|
|
Hi Jeremy, thanks for the quick response! I've updated the Nhibernate Designer to build 2.1.555.21807 (the current build available to download). But the same issue remains. Is there any configuration i have missed? Any change on model (i.e. a simple Entity dragging), causes a remapping from the whole generated classes (even if the change don't affect that class). Can you help me on this? Thanks! |
|
|
Ok, sounds like this must be a different (but somewhat related) issue. Is it possible for you to send us through a small repro project which highlights the problem which we can use as a reference for tracking down whats occurring here and applying a fix for you. You can email this through to us at support at mindscape.co.nz if you would prefer not to attach this to the post.
|
|