mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update TDengine BulkCopy
This commit is contained in:
@@ -86,10 +86,11 @@ namespace SqlSugar.TDengine
|
|||||||
|
|
||||||
// 调用 InsertChildTable
|
// 调用 InsertChildTable
|
||||||
InsertChildTable(tableName, childTable, tagColumns,sb, sbTables);
|
InsertChildTable(tableName, childTable, tagColumns,sb, sbTables);
|
||||||
}
|
|
||||||
|
|
||||||
await this.Context.Ado.ExecuteCommandAsync(sbTables.ToString());
|
var sql = sb.ToString();
|
||||||
await this.Context.Ado.ExecuteCommandAsync(sb.ToString());
|
var result = await this.Context.Ado.ExecuteCommandAsync(sql);
|
||||||
|
sb.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -140,7 +141,7 @@ namespace SqlSugar.TDengine
|
|||||||
var action = this.Context.TempItems[TagKey + "action"] as Func<string, string>;
|
var action = this.Context.TempItems[TagKey + "action"] as Func<string, string>;
|
||||||
var subTableName = builder.GetTranslationColumnName(action(tagsValues));
|
var subTableName = builder.GetTranslationColumnName(action(tagsValues));
|
||||||
|
|
||||||
sbtables.AppendLine($"CREATE TABLE {subTableName} USING {tableName} TAGS({tags});");
|
//sbtables.AppendLine($"CREATE TABLE {subTableName} USING {tableName} TAGS({tags});");
|
||||||
|
|
||||||
var sqlBuilder =sb;
|
var sqlBuilder =sb;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user