Ignore:
Timestamp:
07/20/20 15:46:14 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
f33b0d4
Parents:
30a465f
Message:

Add BaseEntity class and it's inheritance

Location:
FarmatikoData/Models
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Models/HealthFacilities.cs

    r30a465f r171f106  
    33using System.ComponentModel.DataAnnotations;
    44using System.Text;
     5using FarmatikoData.Base;
    56using Microsoft.EntityFrameworkCore;
    67
    78namespace FarmatikoData.Models
    89{
    9     public class HealthFacilities
     10    public class HealthFacilities : BaseEntity
    1011    {
    1112        public HealthFacilities() { }
  • FarmatikoData/Models/HealthcareWorkers.cs

    r30a465f r171f106  
    33using System.ComponentModel.DataAnnotations;
    44using System.Text;
     5using FarmatikoData.Base;
    56using Microsoft.EntityFrameworkCore;
    67
    78namespace FarmatikoData.Models
    89{
    9     public class HealthcareWorkers
     10    public class HealthcareWorkers : BaseEntity
    1011    {
    1112        public HealthcareWorkers() { }
  • FarmatikoData/Models/Medicine.cs

    r30a465f r171f106  
    22using System.Collections.Generic;
    33using System.Text;
     4using FarmatikoData.Base;
    45using Microsoft.EntityFrameworkCore;
    56
    67namespace FarmatikoData.Models
    78{
    8     public class Medicine
     9    public class Medicine : BaseEntity
    910    {
    1011        public Medicine() { }
  • FarmatikoData/Models/MedicineList.cs

    r30a465f r171f106  
    11using System.Collections.Generic;
     2using FarmatikoData.Base;
    23using FarmatikoData.Models;
    34using Microsoft.EntityFrameworkCore;
     
    56namespace FarmatikoData.Models
    67{
    7     public class MedicineList
     8    public class MedicineList : BaseEntity
    89    {
    9         public Medicine Medicines { get; set; }
     10        public Medicine Medicine { get; set; }
    1011        public bool HasMedicine { get; set; }
    1112        public ICollection<Medicine> MedicinesList { get; set; }
  • FarmatikoData/Models/Pandemic.cs

    r30a465f r171f106  
    22using System.Collections.Generic;
    33using System.Text;
     4using FarmatikoData.Base;
    45using Microsoft.EntityFrameworkCore;
    56
    67namespace FarmatikoData.Models
    78{
    8     public class Pandemic
     9    public class Pandemic : BaseEntity
    910    {
    1011        public Pandemic() { }
  • FarmatikoData/Models/Pharmacy.cs

    r30a465f r171f106  
    11using System;
    22using System.Collections.Generic;
     3using System.ComponentModel.DataAnnotations;
    34using System.Text;
     5using FarmatikoData.Base;
    46using Microsoft.EntityFrameworkCore;
    57
    68namespace FarmatikoData.Models
    79{
    8     public class Pharmacy
     10    public class Pharmacy : BaseEntity
    911    {
    1012        public Pharmacy() { }
     13        [Required]
    1114        public string Name { get; set; }
     15        [Required]
    1216        public string Location { get; set; }
     17        [Required]
    1318        public string Address { get; set; }
    1419        public bool WorkAllTime { get; set; }
  • FarmatikoData/Models/PharmacyHead.cs

    r30a465f r171f106  
    22using System.Collections.Generic;
    33using System.Text;
     4using FarmatikoData.Base;
    45using Microsoft.EntityFrameworkCore;
    56
    67namespace FarmatikoData.Models
    78{
    8     public class PharmacyHead
     9    public class PharmacyHead : BaseEntity
    910    {
    1011        public MedicineList PharmacyMedicines { get; set; }
Note: See TracChangeset for help on using the changeset viewer.