iotgateway/IoTGateway.Model/DeviceConfig.cs

40 lines
1.0 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System;
2021-12-12 14:55:48 +08:00
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
[Comment("通讯配置")]
[Index(nameof(DeviceConfigName))]
[Index(nameof(Value))]
2021-12-12 14:55:48 +08:00
public class DeviceConfig : BasePoco
{
[Comment("名称")]
2024-01-08 22:18:16 +08:00
[Display(Name = "ConfigName")]
2021-12-12 14:55:48 +08:00
public string DeviceConfigName { get; set; }
[Comment("属性侧")]
2024-01-08 22:18:16 +08:00
[Display(Name = "DataSide")]
2022-03-24 21:38:11 +08:00
public DataSide DataSide { get; set; }
[Comment("描述")]
2023-12-23 17:34:58 +08:00
[Display(Name = "Description")]
2021-12-12 14:55:48 +08:00
public string Description { get; set; }
[Comment("值")]
2023-12-23 17:34:58 +08:00
[Display(Name = "Value")]
2021-12-12 14:55:48 +08:00
public string Value { get; set; }
[Comment("备注")]
2023-12-23 17:34:58 +08:00
[Display(Name = "Remark")]
2021-12-12 14:55:48 +08:00
public string EnumInfo { get; set; }
2021-12-12 14:55:48 +08:00
public Device Device { get; set; }
[Comment("所属设备")]
2024-01-08 22:18:16 +08:00
[Display(Name = "Device")]
2021-12-12 14:55:48 +08:00
public Guid? DeviceId { get; set; }
}
}