1
When I pass a string variable to the Objetparameter parameter of the following error.
string nomeParameter = sql.Substring(startPosition, stopPosition - startPosition);
ObjectParameter parameter = new ObjectParameter(nomeParameter, parameters[contador]);
Additional information: The specified Parameter name 'DESCRICAO ' is not Valid. Parameter Names must Begin with a Letter and can only contain Letters, Numbers, and underscores.
If you pass the parameter as below, the error does not occur:
ObjectParameter parameter = new ObjectParameter("DESCRICAO", parameters[contador]);
Would it have any problem with Culture? but the object builder not provide put to Culture.
It really was that friend, I put the Trim and it worked out, thank you very much.
– Nicola Bogar
I didn’t notice that.. =(
– Nicola Bogar