diff --git a/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/UnitTest/Updateable.cs b/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/UnitTest/Updateable.cs index 3c2863c90..cd39ffbfe 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/UnitTest/Updateable.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/UnitTest/Updateable.cs @@ -23,8 +23,8 @@ namespace OrmTest Db.Updateable().SetColumns(it => it.BoolValue == x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); Db.Updateable().SetColumns(it => new UnitBoolTest() { BoolValue = !x.BoolValue }).Where(it => it.Id == 1).ExecuteCommand(); //Db.Updateable().SetColumns(it => it.BoolValue == !x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == it.BoolValue).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == true).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = it.BoolValue).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = true).ExecuteCommand(); //Db.Updateable(x).ReSetValue(it => it.BoolValue == !it.BoolValue).ExecuteCommand(); Db.Updateable(x).UpdateColumns(it =>new { it.BoolValue }) .ExecuteCommand(); diff --git a/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/UnitTest/Updateable.cs b/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/UnitTest/Updateable.cs index 3c2863c90..cd39ffbfe 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/UnitTest/Updateable.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/UnitTest/Updateable.cs @@ -23,8 +23,8 @@ namespace OrmTest Db.Updateable().SetColumns(it => it.BoolValue == x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); Db.Updateable().SetColumns(it => new UnitBoolTest() { BoolValue = !x.BoolValue }).Where(it => it.Id == 1).ExecuteCommand(); //Db.Updateable().SetColumns(it => it.BoolValue == !x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == it.BoolValue).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == true).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = it.BoolValue).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = true).ExecuteCommand(); //Db.Updateable(x).ReSetValue(it => it.BoolValue == !it.BoolValue).ExecuteCommand(); Db.Updateable(x).UpdateColumns(it =>new { it.BoolValue }) .ExecuteCommand(); diff --git a/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/UnitTest/Updateable.cs b/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/UnitTest/Updateable.cs index 0a99f6da9..2c018bcb7 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/UnitTest/Updateable.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/UnitTest/Updateable.cs @@ -23,9 +23,9 @@ namespace OrmTest Db.Updateable().SetColumns(it => it.BoolValue == x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); Db.Updateable().SetColumns(it => new UnitBoolTest() { BoolValue = !x.BoolValue }).Where(it => it.Id == 1).ExecuteCommand(); Db.Updateable().SetColumns(it => it.BoolValue == !x.BoolValue).Where(it => it.Id == 1).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == it.BoolValue).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == true).ExecuteCommand(); - Db.Updateable(x).ReSetValue(it => it.BoolValue == !it.BoolValue).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = it.BoolValue).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = true).ExecuteCommand(); + Db.Updateable(x).ReSetValue(it => it.BoolValue = !it.BoolValue).ExecuteCommand(); Db.Updateable(x).UpdateColumns(it =>new { it.BoolValue }) .ExecuteCommand();