Bio do usuário
404 bio não encontrada
Membro desde Fev. 25
Postagens:
Respostas:

Boa Tarde,

Segue exemplo de método de chamada:

 public static void Inclui(string NumeroPedido, string Descricao)
 {
     try
     {
         string sSql = "? = call ldPedido_Insere(?,?)";
         using (OdbcCommand insCommand = conexao.getOdbcCommand(sSql))
         {
             var ret = insCommand.Parameters.Add("Retorno", OdbcType.VarChar, 2000);
             ret.Direction = ParameterDirection.ReturnValue;

             insCommand.Parameters.Add("ID", OdbcType.BigInt).Direction = ParameterDirection.Output;
             insCommand.Parameters.Add("Descricao", OdbcType.VarChar, 2000).Value = Descricao;

             insCommand.Prepare();
             insCommand.ExecuteNonQuery();

             if (ret.Value != null && ret.Value.ToString() != "1")
             {
                 throw new Exception(ret.Value.ToString());
             }

             NumeroPedido = insCommand.Parameters["ID"].Value.ToString();
         }
     }
     catch (Exception exc)
     {
         throw new Exception(exc.Message);
     }
 }

Certificações e credenciais da Credly:
Paulo ainda não tem certificações e credenciais da Credly.
Emblemas Global Masters:
Paulo ainda não tem emblemas no Global Masters.
Seguidores:
Paulo ainda não tem seguidores.
Seguindo:
Paulo ainda não segue ninguém.