using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JiShe.CollectBus.IoTDBProvider { /// /// 设备路径构建器 /// public static class DevicePathBuilder { /// /// 构建设备路径 /// /// /// /// public static string GetDeviceId(T entity) where T : IoTEntity { return $"root.{entity.SystemName}.{entity.ProjectCode}.{entity.DeviceId}"; } /// /// 获取表名称 /// /// /// /// public static string GetTableName() where T : IoTEntity { var type = typeof(T); return $"{type.Name}"; } } }