/
Device.cs
48 lines (43 loc) · 1.12 KB
/
Device.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using DeviceManager.Api.Attributes.Dapper;
using System;
using System.ComponentModel.DataAnnotations;
namespace DeviceManager.Api.Data.Model
{
/// <summary>
/// The Device data model
/// </summary>
public class Device
{
/// <summary>
/// Gets or sets the device identifier.
/// </summary>
/// <value>
/// The device identifier.
/// </value>
[Key()]
[DapperInsert]
public Guid DeviceId { get; set; }
/// <summary>
/// Gets or sets the device title.
/// </summary>
/// <value>
/// The device title.
/// </value>
[DapperInsert]
public string DeviceTitle { get; set; }
/// <summary>
/// Device code
/// </summary>
[DapperInsert]
public string DeviceCode { get; set; }
/// <summary>
/// Device group id
/// </summary>
[DapperInsert]
public Guid DeviceGroupId { get; set; }
/// <summary>
/// Device group details
/// </summary>
public DeviceGroup DeviceGroup { get; set; }
}
}