I have a field nvarchar(50)in my table. For example, when I save line c 12 character Length, it saves line c 50 character length. In fact, it adds a space at the end of the line. Should I choose a different data type?
tmp_Person.NameFamily = txt_NameFamily.Text.Trim();
PersonKBBSHDataContext.PersonInfos.InsertOnSubmit(tmp_Person);
PersonKBBSHDataContext.SubmitChanges();
When I save a row directly (in SQL Server ) to a NameFamilytable field , everything is fine.
source
share