Last change
on this file since dae4cde was e0cdea2, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 4 years ago |
Fix all bugs
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel.DataAnnotations;
|
---|
4 | using System.Text;
|
---|
5 | using FarmatikoData.Base;
|
---|
6 | using Microsoft.EntityFrameworkCore;
|
---|
7 | using Newtonsoft.Json;
|
---|
8 |
|
---|
9 | namespace 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.