17 lines
290 B
C#
17 lines
290 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Blog.DAL.Model
|
|
{
|
|
public class Post
|
|
{
|
|
[Key]
|
|
public long Id { get; set; }
|
|
|
|
[Required]
|
|
public string Content { get; set; }
|
|
|
|
[Required]
|
|
public string Author { get; set; }
|
|
}
|
|
}
|