source: PostgreSqlDotnetCore/Models/BlogPostConsultation.cs@ 2aea0fd

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

init commit Elena

  • Property mode set to 100644
File size: 818 bytes
RevLine 
[2aea0fd]1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.ComponentModel.DataAnnotations.Schema;
5using System.Linq;
6using System.Web;
7
8namespace PostgreSqlDotnetCore.Models
9{
10 [Table("blog_post_for_consultations", Schema = "project")]
11 public class BlogPostConsultation
12 {
13 [Key]
14 public int id { get; set; }
15 //public DateTime date_askes { get; set; }
16 //public DateTime date_askes { get; set; } = DateTime.UtcNow.Date;
17 public DateOnly date_askes { get; set; } = DateOnly.FromDateTime(DateTime.UtcNow);
18
19 public string title { get; set; }
20
21 public string description { get; set; }
22 public int users_id { get; set; }
23
24 public List<BlogPostAnswers> ?BlogPostAnswers { get; set; }
25
26 }
27}
Note: See TracBrowser for help on using the repository browser.