Changeset 37c8d1d for FarmatikoData


Ignore:
Timestamp:
07/23/20 19:59:03 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
785b8bd
Parents:
a8ccc2c
Message:

Add FarmatikoRepository and FarmatikoServices

Location:
FarmatikoData
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoDataContext.cs

    ra8ccc2c r37c8d1d  
    1818        public DbSet<Pandemic> Pandemics { get; set; }
    1919        public DbSet<Medicine> Medicines { get; set; }
    20         public DbSet<MedicineList> MedicineLists { get; set; }
     20        public virtual DbSet<MedicineList> MedicineLists { get; set; }
    2121
    2222    }
  • FarmatikoData/Models/HealthFacilities.cs

    ra8ccc2c r37c8d1d  
    1111    {
    1212        public HealthFacilities() { }
    13         [Required] 
     13        [Required]
    1414        public string Name { get; set; }
    1515        [Required]
  • FarmatikoData/Models/MedicineList.cs

    ra8ccc2c r37c8d1d  
    88    public class MedicineList : BaseEntity
    99    {
    10         public Medicine Medicines { get; set; }
     10        public Medicine Medicine { get; set; }
    1111        public bool HasMedicine { get; set; }
    12         public ICollection<Medicine> MedicinesList { get; set; }
     12        /*public ICollection<MedicineList> MedicinesList { get; set; }
    1313        public MedicineList()
    1414        {
    15             MedicinesList = new HashSet<Medicine>();
    16         }
    17 
     15            MedicinesList = new HashSet<MedicineList>();
     16        }*/
    1817    }
    1918}
Note: See TracChangeset for help on using the changeset viewer.