vreksam/DAL/Domain/Post.cs

20 lines
439 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace DAL.Domain
{
public class Post
{
[Key]
public int PostId { get; set; }
public string Title { get; set; }
public string Body { get; set; }
public DateTime CreationTime { get; set; }
public string Author { get; set; }
public int ForumId { get; set; }
public Foorum Foorum { get; set; }
}
}