I use the seed method to populate the database. Some objects have properties in Cyrillic. Example:
context.Wines.AddOrUpdate(new Wine()
{
Id = 1,
Name = "",
etc........................................
Objects are properly created in the database, however, when I check the database in the MS SQL management studio, instead of the name of the wine, which is "Chardonnay", it appears as "Shared".
It is strange when I create wine in my Startup class as follows:
var db = new WineSystemDbContext();
var ShardoneWine = new Wine { Name = "};
db.Wines.Add(ShardoneWine);
everything is displayed correctly in cyrillic in the database.
Do you have any idea what might cause this?
source
share