mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix breaking ef API change in Seed
This commit is contained in:
parent
91a94b6342
commit
09adeb22d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue