source: FarmatikoData/Models/Pharmacy.cs@ e0cdea2

Last change on this file since e0cdea2 was e0cdea2, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 2 years ago

Fix all bugs

  • Property mode set to 100644
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.Text;
5using FarmatikoData.Base;
6using Microsoft.EntityFrameworkCore;
7using Newtonsoft.Json;
8
9namespace FarmatikoData.Models
10{
11 public class Pharmacy : BaseEntity
12 {
13 public Pharmacy() { }
14 [Required]
15 [JsonProperty("name")]
16 public string Name { get; set; }
17 [Required]
18 [JsonProperty("location")]
19 public string Location { get; set; }
20 [Required]
21 [JsonProperty("address")]
22 public string Address { get; set; }
23 [Required]
24 [JsonProperty("workAllTime")]
25 public bool WorkAllTime { get; set; }
26 public Pharmacy(string Name, string Location, string Address, bool WorkAllTime)
27 {
28 this.Name = Name;
29 this.Location = Location;
30 this.Address = Address;
31 this.WorkAllTime = WorkAllTime;
32 }
33 public int? PheadId { get; set; }
34 public PharmacyHead PharmacyHead { get; set; }
35 }
36}
Note: See TracBrowser for help on using the repository browser.