source:
FarmatikoData/Models/Pharmacy.cs@
7520f88
Last change on this file since 7520f88 was db484c9, checked in by , 4 years ago | |
---|---|
|
|
File size: 899 bytes |
Rev | Line | |
---|---|---|
[30a465f] | 1 | using System; |
2 | using System.Collections.Generic; | |
[5d02859] | 3 | using System.ComponentModel.DataAnnotations; |
[30a465f] | 4 | using System.Text; |
[a8ccc2c] | 5 | using FarmatikoData.Base; |
[30a465f] | 6 | using Microsoft.EntityFrameworkCore; |
7 | ||
8 | namespace FarmatikoData.Models | |
9 | { | |
[a8ccc2c] | 10 | public class Pharmacy : BaseEntity |
[30a465f] | 11 | { |
12 | public Pharmacy() { } | |
[5d02859] | 13 | [Required] |
[30a465f] | 14 | public string Name { get; set; } |
[5d02859] | 15 | [Required] |
[30a465f] | 16 | public string Location { get; set; } |
[5d02859] | 17 | [Required] |
[30a465f] | 18 | public string Address { get; set; } |
[5d02859] | 19 | [Required] |
[30a465f] | 20 | public bool WorkAllTime { get; set; } |
[c406ae5] | 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 | } | |
[1db5673] | 28 | public int PheadId { get; set; } |
[db484c9] | 29 | public PharmacyHead PharmacyHead { get; set; } |
[30a465f] | 30 | } |
31 | } |
Note:
See TracBrowser
for help on using the repository browser.