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

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

Fix bugs, add some more

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