mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Update db.UpdateNav
This commit is contained in:
parent
3cef13d60b
commit
4742dc7d6b
@ -114,7 +114,7 @@ namespace SqlSugar
|
||||
pkColumn.PropertyInfo.SetValue(child, value());
|
||||
}
|
||||
}
|
||||
this._Context.Updateable(UpdateData).ExecuteCommand();
|
||||
this._Context.Insertable(UpdateData).ExecuteCommand();
|
||||
}
|
||||
private void SetError<TChild>(EntityColumnInfo pkColumn, List<TChild> UpdateData) where TChild : class, new()
|
||||
{
|
||||
@ -126,7 +126,7 @@ namespace SqlSugar
|
||||
Check.ExceptionEasy($"The field {name} is not an autoassignment type and requires an assignment", $"字段{name}不是可自动赋值类型,需要赋值 , 可赋值类型有 自增、long、Guid、string");
|
||||
}
|
||||
}
|
||||
this._Context.Updateable(UpdateData).ExecuteCommand();
|
||||
this._Context.Insertable(UpdateData).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user