main
Last change
on this file since d6040ef 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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel.DataAnnotations;
|
---|
4 | using System.ComponentModel.DataAnnotations.Schema;
|
---|
5 | using System.Data;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Web;
|
---|
8 |
|
---|
9 | namespace 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.