Changeset 37c8d1d


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

Files:
11 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/counter/counter.component.spec.ts

    ra8ccc2c r37c8d1d  
    99  beforeEach(async(() => {
    1010    TestBed.configureTestingModule({
    11       declarations: [ CounterComponent ]
     11      declarations: [CounterComponent]
    1212    })
    13     .compileComponents();
     13      .compileComponents();
    1414  }));
    1515
  • 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}
  • FarmatikoServices/FarmatikoServices.csproj

    ra8ccc2c r37c8d1d  
    55  </PropertyGroup>
    66
     7  <ItemGroup>
     8    <ProjectReference Include="..\FarmatikoData\FarmatikoData.csproj" />
     9  </ItemGroup>
     10
    711</Project>
Note: See TracChangeset for help on using the changeset viewer.