mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
Clickhouse Update Set Parameter测试
This commit is contained in:
parent
35c4cfb3e2
commit
e6a42ee2d2
@ -20,7 +20,7 @@ namespace FreeSql.Tests.ClickHouse
|
||||
_fsql = new FreeSqlBuilder().UseConnectionString(DataType.ClickHouse,
|
||||
"Host=192.168.1.123;Port=8123;Database=test;Compress=True;Min Pool Size=1")
|
||||
.UseMonitorCommand(cmd => _output.WriteLine($"线程:{cmd.CommandText}\r\n"))
|
||||
.UseNoneCommandParameter(true)
|
||||
.UseNoneCommandParameter(false)
|
||||
.Build();
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ namespace FreeSql.Tests.ClickHouse
|
||||
public void TestBoolMappingUpdate()
|
||||
{
|
||||
_fsql.Update<BoolMappingTest>()
|
||||
.Set(t => t.IsDelete, false)
|
||||
.Set(t => t.IsDelete, true)
|
||||
.Where(b => b.Age > 10)
|
||||
.ExecuteAffrows();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user