entity framework - EF not saving Unicode characters -


i have table nvarchar column. when save data contains unicode characters column, ef sending data varchar manes unicode characters replaced.

create table mytable (id int identity, name nvarchar(max)); 

i try set mytable.name "100 ≠ 200" , here's find in sql profiler:

exec sp_executesql n'update [mytable] set [name] = @0 (([id] = @1)) ',n'@0 varchar(max) ,@1 int',@0='100 ? 200',@1=1

notice data type of @0 varchar(max) instead of nvarchar(max). how fix this?

update notice proper unicode character coming through in request. code pulling character our of model:

unicode character correct in request.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

c - "error: subscripted value is neither array nor pointer nor vector", but why? -