2017-06-12 12:16:58 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2017-06-12 17:22:58 +03:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2017-06-12 12:16:58 +03:00
|
|
|
|
|
|
|
|
|
namespace DAL.Domain
|
|
|
|
|
{
|
|
|
|
|
public class Post
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int PostId { get; set; }
|
2017-06-12 17:22:58 +03:00
|
|
|
|
|
|
|
|
|
[MaxLength(length: 128)]
|
|
|
|
|
[MinLength(length: 1)]
|
2017-06-12 12:16:58 +03:00
|
|
|
|
public string Title { get; set; }
|
2017-06-12 17:22:58 +03:00
|
|
|
|
|
|
|
|
|
[MaxLength(length: 1024)]
|
|
|
|
|
[MinLength(length: 1)]
|
2017-06-12 12:16:58 +03:00
|
|
|
|
public string Body { get; set; }
|
|
|
|
|
public DateTime CreationTime { get; set; }
|
2017-06-12 17:22:58 +03:00
|
|
|
|
|
|
|
|
|
[MaxLength(length: 128)]
|
|
|
|
|
[MinLength(length: 1)]
|
2017-06-12 12:16:58 +03:00
|
|
|
|
public string Author { get; set; }
|
|
|
|
|
|
2017-06-12 17:22:58 +03:00
|
|
|
|
|
2017-06-12 12:20:53 +03:00
|
|
|
|
public int ForumId { get; set; }
|
|
|
|
|
|
2017-06-12 12:16:58 +03:00
|
|
|
|
}
|
|
|
|
|
}
|