main
Last change
on this file since 2639fab was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
710 bytes
|
Rev | Line | |
---|
[2aea0fd] | 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 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.