From 86891dc07af0ddc7e1c75d5690147812b4266dba Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 26 Feb 2025 19:44:28 +0800 Subject: [PATCH] Update TDengine --- .../TDengine/CodeFirst/TDengineCodeFirst.cs | 2 +- .../TDengine/DbMaintenance/TDengineDbMaintenance.cs | 2 +- .../TDengine/Insertable/TagInserttable.cs | 2 +- Src/Asp.NetCore2/SqlSugar.TDengineCore/Tools/UtilMethods.cs | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/CodeFirst/TDengineCodeFirst.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/CodeFirst/TDengineCodeFirst.cs index 9d26632a0..4c5cd3417 100644 --- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/CodeFirst/TDengineCodeFirst.cs +++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/CodeFirst/TDengineCodeFirst.cs @@ -252,7 +252,7 @@ namespace SqlSugar.TDengine private STableAttribute GetCommonSTableAttribute(STableAttribute sTableAttribute) { - return sTableAttribute; + return SqlSugar.TDengine.UtilMethods.GetCommonSTableAttribute(this.Context, sTableAttribute); } public string GetDatabaseTypeName(string typeName) { diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs index b5a90de38..d5234dea6 100644 --- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/DbMaintenance/TDengineDbMaintenance.cs @@ -495,7 +495,7 @@ namespace SqlSugar.TDengine private STableAttribute GetCommonSTableAttribute(STableAttribute sTableAttribute) { - return sTableAttribute; + return SqlSugar.TDengine.UtilMethods.GetCommonSTableAttribute(this.Context, sTableAttribute); } public override List GetColumnInfosByTableName(string tableName, bool isCache = true) diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs index 80bd67f57..62f023305 100644 --- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs +++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs @@ -126,7 +126,7 @@ namespace SqlSugar } private STableAttribute GetCommonSTableAttribute(STableAttribute sTableAttribute) { - return sTableAttribute; + return SqlSugar.TDengine.UtilMethods.GetCommonSTableAttribute(this.Context,sTableAttribute); } } diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/Tools/UtilMethods.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/Tools/UtilMethods.cs index 834b3d995..41b0acf42 100644 --- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/Tools/UtilMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/Tools/UtilMethods.cs @@ -11,11 +11,16 @@ using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; +using System.Xml.Serialization; namespace SqlSugar.TDengine { public class UtilMethods { + public static STableAttribute GetCommonSTableAttribute(ISqlSugarClient db,STableAttribute sTableAttribute) + { + return sTableAttribute; + } public static long ToUnixTimestamp(DateTime dateTime) { // If the DateTime is Utc, use ToUnixTimeMilliseconds directly