Last change
on this file since afefe75 was db484c9, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Fix bugs
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[e42f61a] | 1 | using FarmatikoData.Base;
|
---|
[1db5673] | 2 | using System.Collections;
|
---|
| 3 | using System.Collections.Generic;
|
---|
[5d02859] | 4 | using System.ComponentModel.DataAnnotations;
|
---|
[1db5673] | 5 | using System.Diagnostics.CodeAnalysis;
|
---|
| 6 | using System.Text.Json.Serialization;
|
---|
[30a465f] | 7 |
|
---|
| 8 | namespace FarmatikoData.Models
|
---|
| 9 | {
|
---|
[a8ccc2c] | 10 | public class Medicine : BaseEntity
|
---|
[30a465f] | 11 | {
|
---|
| 12 | public Medicine() { }
|
---|
[5d02859] | 13 | [Required]
|
---|
[30a465f] | 14 | public string Name { get; set; }
|
---|
[5d02859] | 15 | [Required]
|
---|
[30a465f] | 16 | public string Strength { get; set; }
|
---|
| 17 | public string Form { get; set; }
|
---|
[5d02859] | 18 | [Required]
|
---|
[30a465f] | 19 | public string WayOfIssuing { get; set; }
|
---|
[5d02859] | 20 | [Required]
|
---|
[30a465f] | 21 | public string Manufacturer { get; set; }
|
---|
| 22 | public float Price { get; set; }
|
---|
| 23 | public string Packaging { get; set; }
|
---|
[1db5673] | 24 | //[JsonPropertyName("PHMedicineList")]
|
---|
[db484c9] | 25 | public ICollection<PharmacyHeadMedicine> Medicines { get; set; }
|
---|
[c406ae5] | 26 | public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging)
|
---|
| 27 | {
|
---|
| 28 | this.Name = Name;
|
---|
| 29 | this.Strength = Strength;
|
---|
| 30 | this.Form = Form;
|
---|
| 31 | this.WayOfIssuing = WayOfIssuing;
|
---|
| 32 | this.Manufacturer = Manufacturer;
|
---|
| 33 | this.Price = Price;
|
---|
| 34 | this.Packaging = Packaging;
|
---|
| 35 | }
|
---|
[30a465f] | 36 | }
|
---|
| 37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.