-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.cs
More file actions
111 lines (86 loc) · 3.07 KB
/
Copy pathCustomer.cs
File metadata and controls
111 lines (86 loc) · 3.07 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
namespace MBDEVproAPI.DataModel.Entities
{
/// <summary>
/// Customer Entity
/// </summary>
[Table("Customers")]
public partial class Customer : TrackHistoryTableAndTrigger
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int CustomerID { get; set; }
//[Required]
//[Display(Name = "User name")]
//public string Username { get; set; }
//[Required]
//[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
//[DataType(DataType.Password)]
//[Display(Name = "Password")]
//public string Password { get; set; }
//[DataType(DataType.Password)]
//[Display(Name = "Confirm password")]
//[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
//public string ConfirmPassword { get; set; }
[Required]
public int BusinessID { get; set; }
[StringLength(50)]
[DataType(DataType.Text)]
public string? Company { get; set; }
[Required]
[StringLength(25)]
[DataType(DataType.Text)]
public string FirstName { get; set; } = String.Empty;
[Required]
[StringLength(25)]
[DataType(DataType.Text)]
public string LastName { get; set; } = String.Empty;
[Required]
[StringLength(75)]
[DataType(DataType.EmailAddress)]
public string Email { get; set; } = String.Empty;
[StringLength(50)]
[DataType(DataType.Text)]
public string? Title { get; set; }
[StringLength(25)]
[DataType(DataType.Text)]
public string? BPhone { get; set; }
[StringLength(25)]
[DataType(DataType.Text)]
public string? HPhone { get; set; }
[StringLength(25)]
[DataType(DataType.Text)]
public string? MPhone { get; set; }
[StringLength(25)]
[DataType(DataType.Text)]
public string? Fax { get; set; }
[Required]
[StringLength(75)]
[DataType(DataType.Text)]
public string Address { get; set; } = String.Empty;
[StringLength(75)]
[DataType(DataType.Text)]
public string City { get; set; } = String.Empty;
[StringLength(75)]
[DataType(DataType.Text)]
public string State { get; set; } = String.Empty;
[StringLength(15)]
[DataType(DataType.Text)]
public string ZIPCode { get; set; } = String.Empty;
[StringLength(30)]
[DataType(DataType.Text)]
public string Country { get; set; } = String.Empty;
[StringLength(75)]
[DataType(DataType.Text)]
public string? WebPage { get; set; }
[StringLength(4010)]
[DataType(DataType.MultilineText)]
public string? Notes { get; set; }
[StringLength(75)]
[DataType(DataType.Text)]
public string? Photo { get; set; }
[StringLength(300)]
[DataType(DataType.Text)]
public string? Map { get; set; }
}
}