From 82aad1e058eb88f887de2932ea72f294d864b8b6 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Mon, 20 Dec 2021 14:33:35 +0800 Subject: [PATCH] Update demo --- .../SqlSeverTest/DmOrmTest/UnitTest/Updateable.cs | 4 ++-- .../SqlSeverTest/KdbndpTest/UnitTest/Updateable.cs | 4 ++-- .../SqlSeverTest/MySqlTest/UnitTest/Updateable.cs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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();