Changeset 0a694bb for FarmatikoData/Models
- Timestamp:
- 02/07/21 16:25:56 (4 years ago)
- Branches:
- master
- Children:
- e0cdea2
- Parents:
- ac51326
- Location:
- FarmatikoData/Models
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/Models/Medicine.cs
rac51326 r0a694bb 23 23 public string Packaging { get; set; } 24 24 //[JsonPropertyName("PHMedicineList")] 25 public ICollection<PharmacyHeadMedicine> Medicines { get; set; }25 public virtual ICollection<PharmacyHeadMedicine> Medicines { get; set; } 26 26 public Medicine(string Name, string Strength, string Form, string WayOfIssuing, string Manufacturer, float Price, string Packaging) 27 27 { -
FarmatikoData/Models/Pharmacy.cs
rac51326 r0a694bb 5 5 using FarmatikoData.Base; 6 6 using Microsoft.EntityFrameworkCore; 7 using Newtonsoft.Json; 7 8 8 9 namespace FarmatikoData.Models … … 12 13 public Pharmacy() { } 13 14 [Required] 15 [JsonProperty("name")] 14 16 public string Name { get; set; } 15 17 [Required] 18 [JsonProperty("location")] 16 19 public string Location { get; set; } 17 20 [Required] 21 [JsonProperty("address")] 18 22 public string Address { get; set; } 19 23 [Required] 24 [JsonProperty("workAllTime")] 20 25 public bool WorkAllTime { get; set; } 21 26 public Pharmacy(string Name, string Location, string Address, bool WorkAllTime) -
FarmatikoData/Models/PharmacyHead.cs
rac51326 r0a694bb 24 24 public virtual List<Pharmacy> Pharmacies { get; set; } 25 25 public virtual List<PharmacyHeadMedicine> Medicines { get; set; } 26 26 27 public int UserID { get; set; } 27 28 public User User { get; set; } 28 29
Note:
See TracChangeset
for help on using the changeset viewer.