i solved it did some other tweaks.
public DataSet GetDataSet(string storedProcName, string[] inParameters, object[] values)
{
DataSet _ds = null;
try
{
DbCommand dbCommand = _db.GetSqlStringCommand(storedProcName);
dbCommand.CommandType = CommandType.StoredProcedure;
for (int index = 0; index < values.Length; index++)
{
_db.AddInParameter(dbCommand, inParameters[index], GetDBType(values[index].GetType().ToString()), values[index]);
}
_ds = _db.ExecuteDataSet(dbCommand);
}
catch (Exception exDataSetExecution)
{
if (_connection.State == ConnectionState.Open)
_connection.Close();
throw exDataSetExecution;
}
return _ds;
}