I have: MSSQL server and Entity Framework version 6.1.3.
When I try to seed some data in a migration Up() method, I get a broken encoding value in a column.
My Up() method looks like this:
public override void Up()
{
Sql(@"insert into TableName values ('@fi','ru',N'фи')");
}
I expect that if I put N in front of a value that should be treated as a unicode value I should get 'фи' value in the third column, but what I get is 'ôè'.
Remark
When I execute the same request inside of the Microsoft Sql Server Management Studio I get the expected result. All works correct.
What can be the cause of such a weird encoding twist?
Thanks!