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:

Comments
Post a Comment