Update TDengine

This commit is contained in:
sunkaixuan
2025-02-26 15:52:49 +08:00
parent 128a7ac8a3
commit 6bde63bb39
3 changed files with 69 additions and 0 deletions

View File

@@ -9,6 +9,13 @@ namespace SqlSugar.TDengine
/// </summary>
public static class UtilExtensions
{
public static TagInserttable<T> SetTDengineChildTableName<T>(this IInsertable<T> thisValue,Func<string,T,string> getChildTableNamefunc) where T:class,new()
{
TagInserttable<T> result = new TagInserttable<T>();
result.thisValue = thisValue;
result.getChildTableNamefunc = getChildTableNamefunc;
return result;
}
public static string ObjToStringNoTrim(this object thisValue)
{
if (thisValue != null) return thisValue.ToString();