int index = Command.Parameters.Add("@PkField");
statement. I tried changing it to:int index = Command.Parameters.Add(Row[PkField]);and it still didn't like it. From the error message, it looks like it's expecting to be adding an already defined Parameter and I can't figure out how to create that Parameter object using only IDbDataParameter. The error says:
The SqlParameterCollection only accepts non-null SqlParameter type objects, not Int32 objects.Have you figured it out yet?