Store Procedure Mysql C#
como eu posso passar parametros nulos para minha procedure no C#?
Luciano Mendes
Curtidas 0
Respostas
Nilson Teodoro.
02/08/2010
Utilize DBNull.Value.
Espero ter ajudado.
GOSTEI 0
Netasper
02/08/2010
If Txt_Telefone.Text <> "" Then
comando.Parameters.AddWithValue("@fone", Txt_Telefone.Text.Trim)
Else
comando.Parameters.AddWithValue("@fone", DBNull.Value)
End If
comando.Parameters.AddWithValue("@fone", Txt_Telefone.Text.Trim)
Else
comando.Parameters.AddWithValue("@fone", DBNull.Value)
End If
GOSTEI 0