Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Patient
- {
- [Key]//primary key
- public int PatientID { get; set; }
- public int Height { get; set; }
- public int Age { get; set; }
- public string Name { get; set; }
- public virtual ICollection<PatientAllergy>PatientAllergies { get; set; }
- public virtual PatientWeight Weight { get; set; }
- public virtual ICollection<Operation> Operation{ get; set; }
- public virtual ICollection<HealthCondition>ConditionName { get; set; }
- public virtual ICollection<PatientBloodTest> test { get; set; }
- public virtual ICollection<PatientExercises> exercise { get; set; }
- public virtual ICollection<PatientJab> jab { get; set; }
- }
- public class PatientWeight
- {
- [key]
- public int PatientWeightID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public DateTime DateChecked { get; set; }
- public double Weight { get; set; }
- public virtual Patient patient { get; set; }
- }
- public class PatientJab
- {
- [key]
- public int PatientJabID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public string Type { get; set; }
- public DateTime DateDone { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
- public class PatientExercises
- {
- [key]
- public int PatientExercisesID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public int Swimming { get; set; }
- public int Walking { get; set; }
- public int Gym { get; set; }
- public string Month { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
- public class PatientBloodTest
- {
- [key]
- public int PatientBloodTestID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public string TestType { get; set; }
- public DateTime DateTaken { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
- public class PatientOperation
- {
- [key]
- public int OperationID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public string Name { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
- public class PatientAllergy
- {
- [Key]
- public int PatientAllergyID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public string AllergyType { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
- public class PatientHealthCondition
- {
- [key]
- public int PatientHealthConditionID { get; set; }
- [ForeignKey("PatientID")]
- public int PatientID { get; set; }
- public string Name { get; set; }
- public virtual ICollection<Patient> Patient { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement