I have a SP that receives 12 params in and provides one out. I am following the help, but I am missing something. I get returned the 0, but my SP actually writes the proper RONumber in the db. :)
Code shows:
IDbCommand cmd;
this.ExecSprocScalar("Jobs_Insert", out cmd,
this.CreateParameter("@POnumber", POnumber),
this.CreateParameter("@CustomerID", CustomerID),
--sniped --
this.CreateParameter("@RONumber", 0));
// Retrieve the value from the command object
IDbDataParameter param = (IDbDataParameter)cmd.Parameters["@ROnumber"];
int x = (int)param.Value;
return x;
Any ideas?
TIA