Escali License control 1
Customer.cs
Gå til dokumentasjonen til denne filen.
1using System.ComponentModel.DataAnnotations;
2using System.ComponentModel.DataAnnotations.Schema;
3
5{
6 public class Customer
7 {
8 [Key]
9 public int CustomerSeq { get; set; }
10
11 [Required]
12 [MaxLength(11)]
13 public string OrganizationNumber { get; set; }
14
15 [Required]
16 [MaxLength(50)]
17 public string CustomerName { get; set; }
18
19 public int? LedgerNumber { get; set; }
20
21 [MaxLength(100)]
22 public string? Connection { get; set; }
23
24 [MaxLength(50)]
25 public string? DBName { get; set; }
26
27 [MaxLength(50)]
28 public string? CustomerUsername { get; set; }
29
30 [MaxLength(50)]
31 public string? CustomerPassword { get; set; }
32
33 [MaxLength(50)]
34 public string? API { get; set; }
35
36 [Required]
37 public DateTime? CustomerSince { get; set; }
38
39 public bool? IsActive { get; set; }
40
41 [ForeignKey("Priority")]
42 public int? PrioritySeq { get; set; }
43
44 [ForeignKey("Segment")]
45 public int? SegmentSeq { get; set; }
46
47 [ForeignKey("Region")]
48 public int? RegionSeq { get; set; }
49
50 [ForeignKey("User")]
51 public int? UserSeq { get; set; }
52
53 public virtual Priority? Priority { get; set; }
54
55 public virtual Segment? Segment { get; set; }
56 public virtual Region? Region { get; set; }
57 public virtual User? User { get; set; }
58 public virtual List<Agreement> Agreements { get; set; }
59
60 }
61}