source:
FarmatikoData/Models/MedicineList.cs@
5d02859
Last change on this file since 5d02859 was 5d02859, checked in by , 5 years ago | |
---|---|
|
|
File size: 792 bytes |
Rev | Line | |
---|---|---|
[30a465f] | 1 | using System.Collections.Generic; |
[5d02859] | 2 | using System.ComponentModel.DataAnnotations; |
[a8ccc2c] | 3 | using FarmatikoData.Base; |
[30a465f] | 4 | using FarmatikoData.Models; |
5 | using Microsoft.EntityFrameworkCore; | |
6 | ||
7 | namespace 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.