public bool SetNewDate(string date, string newDate)
{
string sql = string.Format(@"
UPDATE EventSchedule
SET Date = '{0}'
WHERE Date = '{1}'", newDate, date);
var rows = _context.Database.ExecuteSqlCommand(sql);
return rows > 0;
}
warning EF1000: The SQL expression passed to 'ExecuteSqlCommand' embeds data that will not be parameterized.