fix breaking ef API change in Seed

This commit is contained in:
Collin M. Barrett 2020-02-08 12:30:28 -06:00
parent 91a94b6342
commit 09adeb22d9

View file

@ -102,7 +102,7 @@ private static async Task InsertOnDuplicateKeyUpdate<TEntity>(DbContext dbContex
return;
var columns = string.Join(", ", properties.Select(x => x.Name));
var updates = CreateUpdates(properties);
var sql = "INSERT INTO " + entityType.Relational().TableName + " (" + columns + ") VALUES " + values +
var sql = "INSERT INTO " + entityType.GetTableName() + " (" + columns + ") VALUES " + values +
" ON DUPLICATE KEY UPDATE " + updates;
await dbContext.Database.ExecuteSqlCommandAsync(sql);
}