-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.cs
46 lines (37 loc) · 1.11 KB
/
Patient.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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Max.MedicalLab.Data.EntityManager
{
[Table("Patient")]
public class Patient : BaseEntity
{
public Patient()
{
}
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PatientId { get; set; }
public static explicit operator int(Patient v)
{
throw new NotImplementedException();
}
[Required]
[StringLength(100)]
public string Name { get; set; }
[StringLength(250)]
public string Address { get; set; }
[Required]
public int Age { get; set; }
[Required]
[StringLength(1)]
public string Gender { get; set; }
[StringLength(20)]
public string ContactNo { get; set; }
public virtual IList<PatientVisit> PatientVisits { get; set; }
}
}