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