mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
Clickhouse Update 测试
This commit is contained in:
parent
e6a42ee2d2
commit
84f2ab4d41
@ -71,7 +71,7 @@ namespace FreeSql.Tests.ClickHouse
|
||||
/// 测试bool类型修改
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TestBoolMappingUpdate()
|
||||
public void TestBoolMappingUpdateSet()
|
||||
{
|
||||
_fsql.Update<BoolMappingTest>()
|
||||
.Set(t => t.IsDelete, true)
|
||||
@ -79,6 +79,24 @@ namespace FreeSql.Tests.ClickHouse
|
||||
.ExecuteAffrows();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试bool类型修改
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TestBoolMappingUpdate()
|
||||
{
|
||||
_fsql.Update<BoolMappingTest>()
|
||||
.SetSource(new BoolMappingTest
|
||||
{
|
||||
Id = "af199304-239a-48da-9c75-1d5e36167d74",
|
||||
IsEnable = false,
|
||||
IsDelete = true,
|
||||
Age = 60,
|
||||
Name = "Update"
|
||||
})
|
||||
.ExecuteAffrows();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 测试bool类型查询
|
||||
|
@ -14,6 +14,11 @@
|
||||
测试bool类型插入
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:FreeSql.Tests.ClickHouse.ClickHouseTest3.TestBoolMappingUpdateSet">
|
||||
<summary>
|
||||
测试bool类型修改
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:FreeSql.Tests.ClickHouse.ClickHouseTest3.TestBoolMappingUpdate">
|
||||
<summary>
|
||||
测试bool类型修改
|
||||
|
Loading…
x
Reference in New Issue
Block a user