2024-07-19 09:23:04 +08:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
2021-12-12 14:55:48 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
|
|
|
|
|
|
namespace IoTGateway.Model
|
|
|
|
|
{
|
2024-07-19 09:23:04 +08:00
|
|
|
|
[Comment("通讯配置")]
|
|
|
|
|
[Index(nameof(DeviceConfigName))]
|
|
|
|
|
[Index(nameof(Value))]
|
2021-12-12 14:55:48 +08:00
|
|
|
|
public class DeviceConfig : BasePoco
|
|
|
|
|
{
|
2024-07-19 09:23:04 +08:00
|
|
|
|
[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; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
2021-12-12 14:55:48 +08:00
|
|
|
|
public Device Device { get; set; }
|
2024-07-19 09:23:04 +08:00
|
|
|
|
|
|
|
|
|
[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; }
|
|
|
|
|
}
|
|
|
|
|
}
|