source: FarmatikoData/Models/MedicineList.cs@ 5d02859

Last change on this file since 5d02859 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
RevLine 
[30a465f]1using System.Collections.Generic;
[5d02859]2using System.ComponentModel.DataAnnotations;
[a8ccc2c]3using FarmatikoData.Base;
[30a465f]4using FarmatikoData.Models;
5using Microsoft.EntityFrameworkCore;
6
7namespace FarmatikoData.Models
8{
[a8ccc2c]9 public class MedicineList : BaseEntity
[30a465f]10 {
[c406ae5]11 public MedicineList()
12 {
13 }
[5d02859]14 [Required]
[37c8d1d]15 public Medicine Medicine { get; set; }
[5d02859]16 [Required]
[30a465f]17 public bool HasMedicine { get; set; }
[c406ae5]18 public MedicineList(Medicine Medicine, bool HasMedicine)
19 {
20 this.Medicine = Medicine;
21 this.HasMedicine = HasMedicine;
22 }
[37c8d1d]23 /*public ICollection<MedicineList> MedicinesList { get; set; }
[30a465f]24 public MedicineList()
25 {
[37c8d1d]26 MedicinesList = new HashSet<MedicineList>();
27 }*/
[30a465f]28 }
29}
Note: See TracBrowser for help on using the repository browser.