source: PostgreSqlDotnetCore/Models/PetsClass.cs@ 2639fab

main
Last change on this file since 2639fab was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 2 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.