mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 21:32:04 +08:00
fix error when StorageableByObject(null) or StorageableByObject(new List<xx>())
This commit is contained in:
@@ -52,7 +52,10 @@ namespace OrmTest
|
||||
|
||||
// 忽略为NULL和默认值的列进行更新(Ignore columns with NULL and default values during update)
|
||||
var result7 = db.Updateable(updateObj)
|
||||
.IgnoreColumns(ignoreAllNullColumns: true, ignoreAllDefaultValue:true)
|
||||
.IgnoreColumns(ignoreAllNullColumns: true, ignoreAllDefaultValue: true)
|
||||
.ExecuteCommand();
|
||||
var result7a = db.StorageableByObject(new List<StudentWithSnowflake>()).ToStorage().AsUpdateable
|
||||
.IgnoreColumns(new[] { "" })
|
||||
.ExecuteCommand();
|
||||
|
||||
// 使用最快的方式批量更新实体对象列表(Bulk update a list of entity objects using the fastest method)
|
||||
|
||||
Reference in New Issue
Block a user