source: FarmatikoData/Models/MedicineList.cs@ 993189e

Last change on this file since 993189e was 5d02859, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add new repo, service and controller

  • Property mode set to 100644
File size: 792 bytes
Line 
1using System.Collections.Generic;
2using System.ComponentModel.DataAnnotations;
3using FarmatikoData.Base;
4using FarmatikoData.Models;
5using Microsoft.EntityFrameworkCore;
6
7namespace FarmatikoData.Models
8{
9 public class MedicineList : BaseEntity
10 {
11 public MedicineList()
12 {
13 }
14 [Required]
15 public Medicine Medicine { get; set; }
16 [Required]
17 public bool HasMedicine { get; set; }
18 public MedicineList(Medicine Medicine, bool HasMedicine)
19 {
20 this.Medicine = Medicine;
21 this.HasMedicine = HasMedicine;
22 }
23 /*public ICollection<MedicineList> MedicinesList { get; set; }
24 public MedicineList()
25 {
26 MedicinesList = new HashSet<MedicineList>();
27 }*/
28 }
29}
Note: See TracBrowser for help on using the repository browser.