main
Last change
on this file since 6782104 was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
818 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel.DataAnnotations;
|
---|
4 | using System.ComponentModel.DataAnnotations.Schema;
|
---|
5 | using System.Linq;
|
---|
6 | using System.Web;
|
---|
7 |
|
---|
8 | namespace 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.