bulletboards/ImageBoardServerApp/Data/ImageData.cs

23 lines
494 B
C#
Raw Normal View History

2023-01-18 12:56:24 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ImageBoardServerApp.Data;
public class ImageData
{
[Required]
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
[Key]
public int ImageID { get; set; }
[Required]
public string Board { get; set; }
[Required]
public Byte[] Image { get; set; }
public PostData Post { get; set; }
public CommentData Comment { get; set; }
}