source: PostgreSqlDotnetCore/Models/PetsClass.cs@ 99d0ecc

main
Last change on this file since 99d0ecc was 8f8226c, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago

fix bugs and new pages

Fix BlogPostAnswers
fix present data in the lists

  • Property mode set to 100644
File size: 752 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 name { get; set; }
19
20 public string description { get; set; }
21 // public DateTime dateofbirthday { get; set; }
22 public DateOnly dateofbirthday { get; set; } = DateOnly.FromDateTime(DateTime.UtcNow);
23 public int usersid { get; set; }
24
25 public int typeofpetsid { get; set; }
26
27
28
29
30 }
31}
Note: See TracBrowser for help on using the repository browser.