source: PostgreSqlDotnetCore/Models/BlogPostConsultation.cs@ 118e414

main
Last change on this file since 118e414 was 57fc402, checked in by ElenaMoskova <elena.moskova99@…>, 5 weeks ago

Аsync, access permission, and other fixes.

Regulation of access permissions. Which fields can be accessed by different users.

  • Property mode set to 100644
File size: 823 bytes
Line 
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.Now);
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.