Last change
on this file since afefe75 was 1454207, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Change structure, Add repo, services & controllers
|
-
Property mode
set to
100644
|
File size:
1014 bytes
|
Rev | Line | |
---|
[30a465f] | 1 | using System;
|
---|
[a55ef91] | 2 | using System.Collections;
|
---|
[30a465f] | 3 | using System.Collections.Generic;
|
---|
| 4 | using System.ComponentModel.DataAnnotations;
|
---|
| 5 | using System.Text;
|
---|
[a8ccc2c] | 6 | using FarmatikoData.Base;
|
---|
[30a465f] | 7 | using Microsoft.EntityFrameworkCore;
|
---|
| 8 |
|
---|
| 9 | namespace FarmatikoData.Models
|
---|
| 10 | {
|
---|
[1454207] | 11 | public class HealthFacility : BaseEntity
|
---|
[30a465f] | 12 | {
|
---|
[1454207] | 13 | public HealthFacility() { }
|
---|
[37c8d1d] | 14 | [Required]
|
---|
[30a465f] | 15 | public string Name { get; set; }
|
---|
| 16 | [Required]
|
---|
| 17 | public string Municipality { get; set; }
|
---|
| 18 | [Required]
|
---|
| 19 | public string Address { get; set; }
|
---|
| 20 | [Required]
|
---|
| 21 | public string Type { get; set; }
|
---|
| 22 | public string Email { get; set; }
|
---|
| 23 | public string Phone { get; set; }
|
---|
[1454207] | 24 | public HealthFacility(string Name, string Municipality, string Address, string Type, string Email, string Phone)
|
---|
[c406ae5] | 25 | {
|
---|
| 26 | this.Name = Name;
|
---|
| 27 | this.Municipality = Municipality;
|
---|
| 28 | this.Address = Address;
|
---|
| 29 | this.Type = Type;
|
---|
| 30 | this.Email = Email;
|
---|
| 31 | this.Phone = Phone;
|
---|
| 32 | }
|
---|
[30a465f] | 33 | }
|
---|
| 34 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.