I'm trying to use Castle ActiveRecord with c# to move data from an old
database (FF2) to spatiaLite (sqLite).

The first four tables are updated without any problems. Then every
table after and including SnapFarms gives and error when I try to
save.  None of these tables have composite primary IDs and all of the
property values seem to be valid.

SnapFarms tbl = new SnapFarms();

...record loop ...
...... column loop ...
   if (theField.Equals("clientid")) tbl.operationId = getString(val,
"{000-000}"); else
   if (theField.Equals("farmid")) tbl.farmId =
getString(val,"{000-000}"); else
   if (theField.Equals("farmname")) tbl.farmName =
getString(val,"Missing"); else
.
.
.
...... end column loop
... end record loop


tbl.Save();

The exception message::Index was out of range. Must be non-negative
and less than the size of the collection.
Parameter name: index

There is no Index column so what is going on??

Thanks,

jww

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to