mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Updateable Ignore(string []) BUG
This commit is contained in:
@@ -26,6 +26,7 @@ namespace OrmTest
|
||||
Db.Updateable<BoolTest>(x).ReSetValue(it => it.BoolValue == it.BoolValue).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>(x).ReSetValue(it => it.BoolValue == true).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>(x).ReSetValue(it => it.BoolValue == !it.BoolValue).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>(x).UpdateColumns(it =>new { it.BoolValue }) .ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -138,7 +138,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (columns.HasValue())
|
||||
{
|
||||
var ignoreColumns = columns;
|
||||
var ignoreColumns = columns.Select(it => it.ToLower()).ToList() ;
|
||||
this.UpdateBuilder.DbColumnInfoList = this.UpdateBuilder.DbColumnInfoList.Where(it => !ignoreColumns.Contains(it.PropertyName.ToLower())).ToList();
|
||||
this.UpdateBuilder.DbColumnInfoList = this.UpdateBuilder.DbColumnInfoList.Where(it => !ignoreColumns.Contains(it.DbColumnName.ToLower())).ToList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user