Actually before i did not use framework or linq, just type in sql statement with Sqlcommand class, i type in insert into table values(N'sample')
actually i donot know what is N, but it works for Chinese and other Language, otherwise, it will insert some question mark.
But when i use EntityFramework,this kind of framework always insert some question mark, can i ask how to tackle the issue.
N means Unicode? Can you give me one example that EntityFramework use that sort of thing?
this way EF will save unicode characters.
I had exact same problem for Nepali Language. I had to convert the datatype of sql server column from varchar to nvarchar and then refresh my *.edmx file in entity framework mapping. Then it worked fine.
varchar(255) => nvarchar(255)
varchar(MAX) => nvarchar(MAX)
Right click on that table mapping in edmx file and refresh. Save the changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With