source: PostgreSqlDotnetCore/Models/ManufacturersClass.cs@ 72b1da2

main
Last change on this file since 72b1da2 was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago

init commit Elena

  • Property mode set to 100644
File size: 687 bytes
RevLine 
[2aea0fd]1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.ComponentModel.DataAnnotations.Schema;
5using System.Linq;
6using System.Web;
7
8namespace PostgreSqlDotnetCore.Models
9{
10 [Table("manufacturers", Schema = "project")]
11 public class ManufacturersClass
12 {
13 [Key]
14 public int id { get; set; }
15
16 [Required(ErrorMessage = "The manufacturer's name is required")]
17 public string name { get; set; }
18 [Required(ErrorMessage = "The city is required")]
19 public string description { get; set; }
20 public string city { get; set; }
21 public string state { get; set; }
22
23 }
24}
Note: See TracBrowser for help on using the repository browser.