main
Last change
on this file since 72b1da2 was 57fc402, checked in by ElenaMoskova <elena.moskova99@…>, 3 months 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 | |
---|
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.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.