I can not save a record for the char data type in c # MVC

0

I have a table of products and the code I have as char(6) in the data and business layer I do the whole process, now in the presentation layer I convert the string in char using Convert.TChar(txtcodigo.Text) , it does not send me a error until saving the record tells me

  

"Error the string must have exactly one character".

    
asked by Rhaegar 30.09.2018 в 20:55
source

0 answers