From c8e2b7aab95e02b006dfa885f59e3a948bf17811 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 26 Feb 2025 20:09:03 +0800 Subject: [PATCH] - --- .../TDengine/Insertable/TagInserttable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs index 62f023305..436400535 100644 --- a/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs +++ b/Src/Asp.NetCore2/SqlSugar.TDengineCore/TDengine/Insertable/TagInserttable.cs @@ -19,7 +19,7 @@ namespace SqlSugar { var provider = (InsertableProvider)thisValue; var inserObjects = provider.InsertObjs; - var attr = typeof(T).GetCustomAttribute(); + var attr =GetCommonSTableAttribute( typeof(T).GetCustomAttribute()); Check.ExceptionEasy(attr == null || attr?.Tag1 == null, $"", $"{nameof(T)}缺少特性STableAttribute和Tag1"); // 根据所有非空的 Tag 进行分组 var groups = GetGroupInfos(inserObjects, attr); @@ -44,7 +44,7 @@ namespace SqlSugar { var provider = (InsertableProvider)thisValue; var inserObjects = provider.InsertObjs; - var attr = typeof(T).GetCustomAttribute(); + var attr = GetCommonSTableAttribute(typeof(T).GetCustomAttribute()); Check.ExceptionEasy(attr == null || attr?.Tag1 == null, $"", $"{nameof(T)}缺少特性STableAttribute和Tag1"); // 根据所有非空的 Tag 进行分组 var groups = GetGroupInfos(inserObjects, attr);