Changeset 5d02859 for FarmatikoData
- Timestamp:
- 09/30/20 10:37:22 (4 years ago)
- Branches:
- master
- Children:
- 1454207
- Parents:
- 63d885e
- Location:
- FarmatikoData
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/FarmatikoDataContext.cs
r63d885e r5d02859 9 9 10 10 11 public DbSet<HealthFacilities> HealthFacilities { get; set; }12 public DbSet<HealthcareWorkers> HealthcareWorkers { get; set; }13 public DbSet<Pharmacy> Pharmacies { get; set; }14 public DbSet<PharmacyHead> PharmacyHeads { get; set; }11 public virtual DbSet<HealthFacilities> HealthFacilities { get; set; } 12 public virtual DbSet<HealthcareWorkers> HealthcareWorkers { get; set; } 13 public virtual DbSet<Pharmacy> Pharmacies { get; set; } 14 public virtual DbSet<PharmacyHead> PharmacyHeads { get; set; } 15 15 public virtual DbSet<Pandemic> Pandemics { get; set; } 16 16 public virtual DbSet<Medicine> Medicines { get; set; } -
FarmatikoData/Models/Medicine.cs
r63d885e r5d02859 1 1 using FarmatikoData.Base; 2 using System.ComponentModel.DataAnnotations; 2 3 3 4 namespace FarmatikoData.Models … … 6 7 { 7 8 public Medicine() { } 9 [Required] 8 10 public string Name { get; set; } 11 [Required] 9 12 public string Strength { get; set; } 10 13 public string Form { get; set; } 14 [Required] 11 15 public string WayOfIssuing { get; set; } 16 [Required] 12 17 public string Manufacturer { get; set; } 13 18 public float Price { get; set; } -
FarmatikoData/Models/MedicineList.cs
r63d885e r5d02859 1 1 using System.Collections.Generic; 2 using System.ComponentModel.DataAnnotations; 2 3 using FarmatikoData.Base; 3 4 using FarmatikoData.Models; … … 11 12 { 12 13 } 14 [Required] 13 15 public Medicine Medicine { get; set; } 16 [Required] 14 17 public bool HasMedicine { get; set; } 15 18 public MedicineList(Medicine Medicine, bool HasMedicine) -
FarmatikoData/Models/Pandemic.cs
r63d885e r5d02859 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 3 4 using System.Text; 4 5 using FarmatikoData.Base; … … 10 11 { 11 12 public Pandemic() { } 13 [Required] 12 14 public string Name { get; set; } 15 [Required] 13 16 public int TotalMK { get; set; } 17 [Required] 14 18 public int ActiveMK { get; set; } 19 [Required] 15 20 public int DeathsMK { get; set; } 21 [Required] 16 22 public int NewMK { get; set; } 23 [Required] 17 24 public long TotalGlobal { get; set; } 25 [Required] 18 26 public long DeathsGlobal { get; set; } 27 [Required] 19 28 public long ActiveGlobal { get; set; } 20 29 public Pandemic(string Name, int TotalMK, int ActiveMK, -
FarmatikoData/Models/Pharmacy.cs
r63d885e r5d02859 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 3 4 using System.Text; 4 5 using FarmatikoData.Base; … … 10 11 { 11 12 public Pharmacy() { } 13 [Required] 12 14 public string Name { get; set; } 15 [Required] 13 16 public string Location { get; set; } 17 [Required] 14 18 public string Address { get; set; } 19 [Required] 15 20 public bool WorkAllTime { get; set; } 16 21 public Pharmacy(string Name, string Location, string Address, bool WorkAllTime) -
FarmatikoData/Models/PharmacyHead.cs
r63d885e r5d02859 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 3 4 using System.Text; 4 5 using FarmatikoData.Base; … … 9 10 public class PharmacyHead : BaseEntity 10 11 { 11 public MedicineList PharmacyMedicines { get; set; } 12 public Pharmacy Pharmacy { get; set; } 12 public PharmacyHead() 13 { 14 } 15 [Required] 13 16 public string Email { get; set; } 17 [Required] 14 18 public string Name { get; set; } 19 [Required] 15 20 public string Password { get; set; } 16 21 public ICollection<MedicineList> MedicineLists { get; set; } 17 22 public ICollection<Pharmacy> PharmaciesList { get; set; } 18 public PharmacyHead() 19 { 20 PharmaciesList = new HashSet<Pharmacy>(); 21 MedicineLists = new HashSet<MedicineList>(); 22 } 23 23 24 } 24 25 }
Note:
See TracChangeset
for help on using the changeset viewer.