I have a EF code first database, to populate the initial tables, I am using sql scripts (are far easier to handle and update that the seed methods).
The problem is, that the scripts are inserting wihtout special characters....
The database collation is: SQL_Latin1_General_CP1_CI_AS
The seed is reading the script like this:
context.Database.ExecuteSqlCommand(File.ReadAllText(baseDir + @"..\..\Scripts\Oficina.sql"));
And the script looks like this:
INSERT [dbo].[Oficina] ([IdOficina], [Nombre], [SISTEMA], [ORDEN]) VALUES (20, N'Comisión Admisión', 1, 5)
The problem is, that its being saved in the database as:
Comisi�n Admisi�n
I have no clue what the problem could be.....any ideas?