Blame view

HHECS.DAQHandle/Models/EquipmentTypePropTemplateExtend.cs 961 Bytes
唐召明 authored
1
2
3
4
5
using FreeSql.DataAnnotations;
using HHECS.EquipmentModel;

namespace HHECS.DAQHandle.Models
{
唐召明 authored
6
7
8
    /// <summary>
    /// 设备属性模板
    /// </summary>
唐召明 authored
9
10
11
12
    [Table(Name = "daq_equipment_type_prop_template")]
    [Index($"uk_{nameof(Code)}", $"{nameof(Code)}", false)]
    public class EquipmentTypePropTemplateExtend : EquipmentTypePropTemplate
    {
唐召明 authored
13
14
15
        /// <summary>
        /// 设备类型
        /// </summary>
唐召明 authored
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
        public new EquipmentTypeExtend EquipmentType { get; set; }

        /// <summary>
        /// 监控地址、常规地址、自身属性
        /// </summary>
        [Column(DbType = "varchar(50)", MapType = typeof(string))]
        public new EquipmentPropType PropType { get; set; }

        /// <summary>
        /// 监控地址、常规地址、自身属性
        /// </summary>
        [Column(DbType = "varchar(50)", MapType = typeof(string))]
        public new EquipmentDataType DataType { get; set; }
    }
}