Ejemplo n.º 1
0
 /// <summary>
 /// Checkouts the output params.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 /// <param name="qry">The qry.</param>
 private static void CheckoutOutputParams(OracleCommand cmd, QueryCommand qry)
 {
     if (qry.CommandType == CommandType.StoredProcedure && qry.HasOutputParams())
     {
         //loop the params, getting the values and setting them for the return
         foreach (QueryParameter param in qry.Parameters)
         {
             if (param.Mode == ParameterDirection.InputOutput || param.Mode == ParameterDirection.Output || param.Mode == ParameterDirection.ReturnValue)
             {
                 object oVal = cmd.Parameters[param.ParameterName].Value;
                 param.ParameterValue = oVal;
                 qry.OutputValues.Add(oVal);
             }
         }
     }
 }