From 9e09fdfe76621a723c3de3e04c5dd34f3c8ac780 Mon Sep 17 00:00:00 2001 From: YuFengLiu <38746920+l2280212@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:47:19 +0800 Subject: [PATCH] fix csharp example error in using tablet (#122) --- src/UserGuide/Master/API/Programming-CSharp-Native-API.md | 2 +- src/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md | 2 +- src/zh/UserGuide/Master/API/Programming-CSharp-Native-API.md | 2 +- src/zh/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UserGuide/Master/API/Programming-CSharp-Native-API.md b/src/UserGuide/Master/API/Programming-CSharp-Native-API.md index c18db2a9..9c7463a6 100644 --- a/src/UserGuide/Master/API/Programming-CSharp-Native-API.md +++ b/src/UserGuide/Master/API/Programming-CSharp-Native-API.md @@ -93,7 +93,7 @@ await session_pool.InsertRecordAsync("root.test_group.test_device", rowRecord); // Insert Tablet var timestamp_lst = new List{ timestamp + 1 }; -var value_lst = new List {new() {"iotdb", true, (int) 12}}; +var value_lst = new List {"iotdb", true, (int) 12}; var tablet = new Tablet("root.test_group.test_device", measures, value_lst, timestamp_ls); await session_pool.InsertTabletAsync(tablet); diff --git a/src/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md b/src/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md index c18db2a9..9c7463a6 100644 --- a/src/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md +++ b/src/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md @@ -93,7 +93,7 @@ await session_pool.InsertRecordAsync("root.test_group.test_device", rowRecord); // Insert Tablet var timestamp_lst = new List{ timestamp + 1 }; -var value_lst = new List {new() {"iotdb", true, (int) 12}}; +var value_lst = new List {"iotdb", true, (int) 12}; var tablet = new Tablet("root.test_group.test_device", measures, value_lst, timestamp_ls); await session_pool.InsertTabletAsync(tablet); diff --git a/src/zh/UserGuide/Master/API/Programming-CSharp-Native-API.md b/src/zh/UserGuide/Master/API/Programming-CSharp-Native-API.md index ab1ebeb0..b72300ff 100644 --- a/src/zh/UserGuide/Master/API/Programming-CSharp-Native-API.md +++ b/src/zh/UserGuide/Master/API/Programming-CSharp-Native-API.md @@ -80,7 +80,7 @@ await session_pool.InsertRecordAsync("root.test_group.test_device", rowRecord); // 插入Tablet var timestamp_lst = new List{ timestamp + 1 }; -var value_lst = new List {new() {"iotdb", true, (int) 12}}; +var value_lst = new List {"iotdb", true, (int) 12}; var tablet = new Tablet("root.test_group.test_device", measures, value_lst, timestamp_ls); await session_pool.InsertTabletAsync(tablet); diff --git a/src/zh/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md b/src/zh/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md index ab1ebeb0..b72300ff 100644 --- a/src/zh/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md +++ b/src/zh/UserGuide/V1.2.x/API/Programming-CSharp-Native-API.md @@ -80,7 +80,7 @@ await session_pool.InsertRecordAsync("root.test_group.test_device", rowRecord); // 插入Tablet var timestamp_lst = new List{ timestamp + 1 }; -var value_lst = new List {new() {"iotdb", true, (int) 12}}; +var value_lst = new List {"iotdb", true, (int) 12}; var tablet = new Tablet("root.test_group.test_device", measures, value_lst, timestamp_ls); await session_pool.InsertTabletAsync(tablet);