Changeset de2baac


Ignore:
Timestamp:
07/24/20 17:30:55 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
4b342bb
Parents:
785b8bd
Message:

Add classes & interfaces for Repo

Location:
FarmatikoData
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoDataContext.cs

    r785b8bd rde2baac  
    1616        public DbSet<Pharmacy> Pharmacies { get; set; }
    1717        public DbSet<PharmacyHead> PharmacyHeads { get; set; }
    18         public DbSet<Pandemic> Pandemics { get; set; }
    19         public DbSet<Medicine> Medicines { get; set; }
     18        public virtual DbSet<Pandemic> Pandemics { get; set; }
     19        public virtual DbSet<Medicine> Medicines { get; set; }
    2020        public virtual DbSet<MedicineList> MedicineLists { get; set; }
    2121
  • FarmatikoData/Models/Pandemic.cs

    r785b8bd rde2baac  
    1010    {
    1111        public Pandemic() { }
     12        public Pandemic(string Name, int TotalMK, int ActiveMK,
     13            int DeathsMK, int NewMK, long TotalGlobal, long DeathsGlobal, long ActiveGlobal)
     14        {
     15            this.Name = Name;
     16            this.TotalMK = TotalMK;
     17            this.ActiveMK = ActiveMK;
     18            this.DeathsMK = DeathsMK;
     19            this.NewMK = NewMK;
     20            this.TotalGlobal = TotalGlobal;
     21            this.DeathsGlobal = DeathsGlobal;
     22            this.ActiveGlobal = ActiveGlobal;
     23        }
    1224        public string Name { get; set; }
    1325        public int TotalMK { get; set; }
     
    1527        public int DeathsMK { get; set; }
    1628        public int NewMK { get; set; }
    17         public int TotalGlobal { get; set; }
    18         public int DeathsGlobal { get; set; }
    19         public int ActiveGlobal { get; set; }
     29        public long TotalGlobal { get; set; }
     30        public long DeathsGlobal { get; set; }
     31        public long ActiveGlobal { get; set; }
    2032    }
    2133}
Note: See TracChangeset for help on using the changeset viewer.