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