I am using EF6.0 code-first.
Here is my model
public class Album
{
[Key]
[Required]
public int AlbumID
[Required]
public string AlbumName
}
This has generated a table in my SQL Server database like this:
AlbumID (PK, int, not null)
AlbumName (nvarchar(max), not null)
But when I enter the AlbumName
in any language other than English, it neither throws an error, nor does the correct value get saved.
When I run the select query it returns AlbumName
as
1 , ????? ?????
2 , ????? ?????
How do I handle this?