using System; using System.ComponentModel.DataAnnotations; using Infrastructure.Domain; namespace Application.Domain.Entities { /// /// 设备数据 /// [Display(Name = "数据")] public class Data : BaseEntity, IDisableRemove { public string Type { get; set; } /// /// 数据Key /// public string Key { get; set; } /// /// 数据值 /// public string Value { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 单位 /// public string Unit { get; set; } /// /// 描述 /// public string Description { get; set; } /// /// 时间戳 /// public long Timestamp { get; set; } /// /// 设备Id /// public Guid DeviceId { get; set; } /// /// 设备 /// public Device Device { get; set; } } }