source: PostgreSqlDotnetCore/Models/PetsClass.cs@ ae6c071

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

init commit Elena

  • Property mode set to 100644
File size: 710 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.ComponentModel.DataAnnotations.Schema;
5using System.Data;
6using System.Linq;
7using System.Web;
8
9namespace PostgreSqlDotnetCore.Models
10{
11 [Table("pets", Schema = "project")]
12 public class PetsClass
13 {
14 [Key]
15 public int id { get; set; }
16 public string color { get; set; }
17
18 public string description { get; set; }
19 // public DateTime dateofbirthday { get; set; }
20 public DateOnly dateofbirthday { get; set; } = DateOnly.FromDateTime(DateTime.UtcNow);
21 public int usersid { get; set; }
22
23 public int typeofpetsid { get; set; }
24
25
26
27
28 }
29}
Note: See TracBrowser for help on using the repository browser.