From 46673546ad47293c982302c4d5789dfa2f7ff606 Mon Sep 17 00:00:00 2001
From: sunkaixuan <610262374@qq.com>
Date: Sun, 19 Nov 2023 00:03:07 +0800
Subject: [PATCH] Update TDengine
---
.../SqlSugar.TDengineCore/STableAttribute.cs | 2 +-
.../SqlSugar.OdbcCore.nuspec | 24 -------------------
.../DbMaintenance/TDengineDbMaintenance.cs | 2 +-
.../Models/Unit/CodeFirstTest1.cs | 4 ++--
4 files changed, 4 insertions(+), 28 deletions(-)
delete mode 100644 Src/Asp.NetCore2/SqlSugar.TDengineCore/SqlSugar.OdbcCore.nuspec
diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/STableAttribute.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/STableAttribute.cs
index 7d9bc2985..66549063d 100644
--- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/STableAttribute.cs
+++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/STableAttribute.cs
@@ -7,6 +7,6 @@ namespace SqlSugar.TDengine
public class STableAttribute:Attribute
{
public string Tags { get; set; }
- public string STablelName { get; set; }
+ public string STableName { get; set; }
}
}
diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/SqlSugar.OdbcCore.nuspec b/Src/Asp.NetCore2/SqlSugar.TDengineCore/SqlSugar.OdbcCore.nuspec
deleted file mode 100644
index e2bafc949..000000000
--- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/SqlSugar.OdbcCore.nuspec
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- SqlSugar.TDengineCore
- 3.2
- sunkaixuan
- Landa
- http://www.apache.org/licenses/LICENSE-2.0.html
- https://github.com/sunkaixuan/SqlSugar
- https://secure.gravatar.com/avatar/a82c03402497b2e58fd65038a3699b30
- false
- SqlSugar TDengine 核心库 ,DEMO用例: https://github.com/DotNetNext/SqlSugar
- Copyright 2016
- TDengine Tdengine tdengine
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs
index 633cf4036..65263daf3 100644
--- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs
+++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs
@@ -418,7 +418,7 @@ namespace SqlSugar.TDengine
if (isAttr)
{
var attr = this.Context.Utilities.DeserializeObject(tableName.Split("{stable}").Last());
- stableName= this.SqlBuilder.GetTranslationTableName(attr.STablelName.ToLower(isAutoToLowerCodeFirst));
+ stableName= this.SqlBuilder.GetTranslationTableName(attr.STableName.ToLower(isAutoToLowerCodeFirst));
tableString = string.Format(this.CreateTableSql, stableName, string.Join(",\r\n", columnArray));
tableName=childTableName = this.SqlBuilder.GetTranslationTableName(tableName.Split("{stable}").First().ToLower(isAutoToLowerCodeFirst));
STable.Tags =this.Context.Utilities.DeserializeObject>( attr.Tags);
diff --git a/Src/Asp.NetCore2/TDengineTest/Models/Unit/CodeFirstTest1.cs b/Src/Asp.NetCore2/TDengineTest/Models/Unit/CodeFirstTest1.cs
index 68803e919..a3c50baa0 100644
--- a/Src/Asp.NetCore2/TDengineTest/Models/Unit/CodeFirstTest1.cs
+++ b/Src/Asp.NetCore2/TDengineTest/Models/Unit/CodeFirstTest1.cs
@@ -44,7 +44,7 @@ namespace TDengineTest
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
}
- [STableAttribute( STablelName = "CodeFirstStable", Tags="[{ Name:\"Tag1\",Value:\"1\"}]")]
+ [STableAttribute( STableName = "CodeFirstStable", Tags="[{ Name:\"Tag1\",Value:\"1\"}]")]
public class CodeFirstTags44
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
@@ -53,7 +53,7 @@ namespace TDengineTest
[SqlSugar.SugarColumn(IsIgnore =true)]
public string Tag1 { get; set; }
}
- [STableAttribute(STablelName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
+ [STableAttribute(STableName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
public class CodeFirstTags33
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]