Using interpolated strings to send sql server queries, why with a datacontext on LINQ to SQL you need to add single quotes ?
db.ExecuteCommand($"delete table where date = '{date:yyyy-MM-dd}'");
while with EF Core you need to remove them ?
db.Database.ExecuteSqlCommand($"delete table where date = {date:yyyy-MM-dd}");
and why in EF Core, if you're using String.Format instead of interpolation, you need to put back the single quotes:
String.Format("delete table where date='{0}'", date.ToString("yyyy-MM-dd"));