唐召明
authored
|
1
2
|
using FreeSql.DataAnnotations;
using HHECS.EquipmentModel;
|
唐召明
authored
|
3
|
using NotMapped = System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute;
|
唐召明
authored
|
4
5
6
7
|
namespace HHECS.DAQClient.Model
{
[Table(Name = nameof(EquipmentProp))]
|
唐召明
authored
|
8
|
[Index($"idx_{nameof(EquipmentProp)}_{nameof(EquipmentTypePropTemplateCode)}", $"{nameof(EquipmentTypePropTemplateCode)}", false)]
|
唐召明
authored
|
9
10
11
12
13
14
15
16
17
18
19
|
public class EquipmentPropExtend : EquipmentProp
{
/// <summary>
/// 设备
/// </summary>
public new EquipmentExtend Equipment { get; set; }
/// <summary>
/// 设备属性模板
/// </summary>
public new EquipmentTypePropTemplateExtend EquipmentTypePropTemplate { get; set; }
|
唐召明
authored
|
20
21
22
|
[NotMapped]
public new int ServerHandle { get; set; }
|
唐召明
authored
|
23
24
|
}
}
|