main
Last change
on this file since 99d0ecc was e9bb9d1, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago |
Use of views
- Use of views in VetCenters.
- Ability to provide a response to a given response.
|
-
Property mode
set to
100644
|
File size:
718 bytes
|
Rev | Line | |
---|
[2aea0fd] | 1 | using System.ComponentModel.DataAnnotations;
|
---|
| 2 | using System.ComponentModel.DataAnnotations.Schema;
|
---|
| 3 |
|
---|
| 4 | namespace PostgreSqlDotnetCore.Models
|
---|
| 5 | {
|
---|
| 6 |
|
---|
| 7 | [Table("blog_post_answers", Schema = "project")]
|
---|
| 8 | public class BlogPostAnswers
|
---|
| 9 | {
|
---|
| 10 | [Key]
|
---|
| 11 | public int id { get; set; }
|
---|
| 12 | public int parent_id { get; set; }
|
---|
| 13 | public string reply { get; set; }
|
---|
[8f8226c] | 14 |
|
---|
| 15 | [ForeignKey("BlogPostConsultation")]
|
---|
| 16 | [Column("blogpostconsid")]
|
---|
| 17 | public int BlogPostConsultationid { get; set; }
|
---|
| 18 | public BlogPostConsultation BlogPostConsultation { get; set; }
|
---|
| 19 |
|
---|
[2aea0fd] | 20 | public int usersid { get; set; }
|
---|
[e9bb9d1] | 21 |
|
---|
| 22 | [NotMapped]
|
---|
| 23 | public List<BlogPostAnswers> blogPostAnswers{ get; set; }
|
---|
[2aea0fd] | 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.