Last change
on this file since ad60966 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 | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using System.ComponentModel.DataAnnotations;
|
---|
3 | using FarmatikoData.Base;
|
---|
4 | using FarmatikoData.Models;
|
---|
5 | using Microsoft.EntityFrameworkCore;
|
---|
6 |
|
---|
7 | namespace 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.