19 lines
353 B
C#
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; }
|
|
}
|
|
} |