SAB-E02/Blog.DAL/Model/Comment.cs
2021-04-06 18:04:43 +02:00

19 lines
353 B
C#

using System.ComponentModel.DataAnnotations;
namespace Blog.DAL.Model
{
public class Comment
{
[Key]
public long Id { get; set; }
[Required]
public long PostId { get; set; }
[Required]
public string Content { get; set; }
[Required]
public string Author { get; set; }
}
}