EquipmentPropExtend.cs 786 Bytes
using FreeSql.DataAnnotations;
using HHECS.EquipmentModel;
using NotMapped = System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute;

namespace HHECS.DAQClient.Model
{
    [Table(Name = nameof(EquipmentProp))]
    [Index($"idx_{nameof(EquipmentProp)}_{nameof(EquipmentTypePropTemplateCode)}", $"{nameof(EquipmentTypePropTemplateCode)}", false)]
    public class EquipmentPropExtend : EquipmentProp
    {
        /// <summary>
        /// 设备
        /// </summary>
        public new EquipmentExtend Equipment { get; set; }

        /// <summary>
        /// 设备属性模板
        /// </summary>
        public new EquipmentTypePropTemplateExtend EquipmentTypePropTemplate { get; set; }

        [NotMapped]
        public new int ServerHandle { get; set; }
    }
}