iotgateway/IoTGateway.Model/DeviceConfig.cs

40 lines
1.0 KiB
C#
Raw Permalink Normal View History

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