main
Last change
on this file since 8f8226c was 2639fab, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago |
Update with triggers
|
-
Property mode
set to
100644
|
File size:
955 bytes
|
Rev | Line | |
---|
[2aea0fd] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel.DataAnnotations;
|
---|
| 4 | using System.ComponentModel.DataAnnotations.Schema;
|
---|
| 5 | using System.IO;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
| 8 |
|
---|
| 9 | namespace PostgreSqlDotnetCore.Models
|
---|
| 10 | {
|
---|
| 11 | [Table("vet_centers", Schema = "project")]
|
---|
| 12 | public class VetCenter
|
---|
| 13 | {
|
---|
| 14 | [Key]
|
---|
| 15 | public int id { get; set; }
|
---|
| 16 |
|
---|
| 17 | [Required(ErrorMessage = "The name is required")]
|
---|
| 18 | public string name { get; set; }
|
---|
| 19 | [Required(ErrorMessage = "The adress is required")]
|
---|
| 20 | public string adress { get; set; }
|
---|
| 21 | public string description { get; set; }
|
---|
| 22 | public string workinghours { get; set; }
|
---|
| 23 | public float latitude { get; set; }
|
---|
| 24 | public float longitude { get; set; }
|
---|
| 25 | public string phonenumber { get; set; }
|
---|
[2639fab] | 26 | // [ForeignKey("CitiesClass")]
|
---|
[2aea0fd] | 27 | public int citiesid { get; set; }
|
---|
[2639fab] | 28 | // public CitiesClass CitiesClass { get; set; }
|
---|
[2aea0fd] | 29 |
|
---|
| 30 |
|
---|
| 31 | }
|
---|
| 32 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.