MySQL Forums
Forum List  »  German

Re: AddWithValue MySqlType.Decimal
Posted by: Oliver H
Date: November 05, 2021 01:31AM

Hi,

Deine ParamaterĂ¼bergabe "AddWithValue" ist falsch.

Als 2. Paramater wird der anzubindende Wert erwartet, nicht der Datentyp.
Verwende lieber paramaters.Add anstatt parameters.AddWithValue


cmd.Parameters.Add("@pLandID", MySqlDbType.Decimal).Value = Convert.ToDecimal(DropDownLand.SelectedItem.Value)

Options: ReplyQuote


Subject
Views
Written By
Posted
167
October 18, 2021 07:55AM
Re: AddWithValue MySqlType.Decimal
46
November 05, 2021 01:31AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.