I want to execute a stored procedure, and give it a parameter like this:
new SqlParameter("@ResidualValue", importExportOptions.ResidualValue)
ResidualValue is of type decimal, and in the database, it has type Money. Now I've been looking for an answer of course, and found the following:
"Just initialize the Parameter with a new SqlMoney(decimal) constructor. SqlParameter parameter = new SqlParameter("@Money", SqlDbType.Money);"
But adding SqlDbType.Money does not give me the option to specify the value importExportOptions.ResidualValue anymore. What can I do?