source: FarmatikoData/Models/Medicine.cs@ 1db5673

Last change on this file since 1db5673 was 1db5673, checked in by DimitarSlezenkovski <dslezenkovski@…>, 3 years ago

Fix bugs, add some more

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[e42f61a]1using FarmatikoData.Base;
[1db5673]2using System.Collections;
3using System.Collections.Generic;
[5d02859]4using System.ComponentModel.DataAnnotations;
[1db5673]5using System.Diagnostics.CodeAnalysis;
6using System.Text.Json.Serialization;
[30a465f]7
8namespace 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")]
25 public ICollection<PharmacyHeadMedicine> MedicineList { 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.