Update TDengine

This commit is contained in:
sunkaixuan
2025-02-26 19:40:26 +08:00
parent f2baf9ec70
commit bfdbdf39a6
3 changed files with 19 additions and 5 deletions

View File

@@ -473,7 +473,7 @@ namespace SqlSugar.TDengine
public override void AddDefaultValue(EntityInfo entityInfo)
{
var talbeName = entityInfo.DbTableName;
var attr = entityInfo.Type.GetCustomAttribute<STableAttribute>();
var attr = GetCommonSTableAttribute(entityInfo.Type.GetCustomAttribute<STableAttribute>());
if (attr?.Tag1 != null)
{
talbeName = attr.STableName;
@@ -493,6 +493,11 @@ namespace SqlSugar.TDengine
}
}
private STableAttribute GetCommonSTableAttribute(STableAttribute sTableAttribute)
{
return sTableAttribute;
}
public override List<DbColumnInfo> GetColumnInfosByTableName(string tableName, bool isCache = true)
{