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

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