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
448
October 18, 2021 07:55AM
Re: AddWithValue MySqlType.Decimal
188
November 05, 2021 01:31AM


Sorry, you can't reply to this topic. It has been closed.

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.