mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 补充 fsql.InsertOrUpdate UpdateColumns 数据存在时只更新指定的字段;
This commit is contained in:
@ -44,6 +44,7 @@ namespace FreeSql.Sqlite.Curd
|
||||
insert.InsertIdentity();
|
||||
if (_doNothing == false)
|
||||
{
|
||||
if (_updateIgnore.Any()) throw new Exception($"fsql.InsertOrUpdate Sqlite 无法完成 UpdateColumns 操作");
|
||||
sql = insert.ToSql();
|
||||
if (sql?.StartsWith("INSERT INTO ") == true)
|
||||
sql = $"REPLACE INTO {sql.Substring("INSERT INTO ".Length)}";
|
||||
|
Reference in New Issue
Block a user