Last post Jul 14, 2005 09:20 PM by Jarcil
Jun 30, 2005 09:51 PM|Jarcil|LINK
I've run a couple of searches on this issue, but have yet to find a concrete answer. My apologies if I'm re-hashing old ground.
I'm using the new Enterprise Library DAAB and attempting to return a dataset
AND obtain a value through an output parameter. This could be achieved in the old version of the DAAB, but I can't figure out why it's going wrong with the Enterprise Library version. Can this still be accomplished?
The best I have been able to do is get the output parameter to return DBNull. I have confirmed that the stored procedure is actually returning a value. My simplified code snippet is below. Many thanks to anyone who is able to steer me in the right direction.
SqlDataReader dr = (SqlDataReader)db.ExecuteReader(comm);
//This is the line that fails - i never contains a value
int i = (int)((SqlParameter)comm.Command.Parameters["@TotalRecords"]).Value;
Jul 14, 2005 09:20 PM|Jarcil|LINK