mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update TDengine
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user