finished implementing thread view, finished adding comments
This commit is contained in:
parent
f09722757a
commit
3e7218c6ae
12 changed files with 87 additions and 34 deletions
|
@ -1,5 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using ImageBoardServerApp.Shared.Components;
|
||||
|
||||
namespace ImageBoardServerApp.Data;
|
||||
|
@ -24,9 +25,9 @@ public class CommentData
|
|||
public virtual UserData User { get; set; }
|
||||
|
||||
//[ForeignKey("ImageID")]
|
||||
public virtual ImageData Image { get; set; }
|
||||
|
||||
public int ImageID { get; set; }
|
||||
public virtual ImageData? Image { get; set; }
|
||||
|
||||
public int? ImageID { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Content { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue