finished implementing thread view, finished adding comments

This commit is contained in:
limited_dev 2023-01-26 13:04:55 +01:00
parent f09722757a
commit 3e7218c6ae
12 changed files with 87 additions and 34 deletions

View file

@ -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; }