2018-12-01 22:12:59 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-12-01 22:43:44 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-12-01 22:12:59 +01:00
|
|
|
|
|
|
|
|
|
namespace Forum.DataAccessLayer.Models
|
|
|
|
|
{
|
2018-12-01 22:41:14 +01:00
|
|
|
|
public class Question
|
2018-12-01 22:12:59 +01:00
|
|
|
|
{
|
2018-12-01 22:41:14 +01:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Nick { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTime PostDate { get; set; }
|
|
|
|
|
|
2018-12-01 23:31:52 +01:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
2018-12-01 22:41:14 +01:00
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsClosed { get; set; }
|
|
|
|
|
|
2018-12-01 22:43:44 +01:00
|
|
|
|
[EmailAddress]
|
2018-12-01 22:41:14 +01:00
|
|
|
|
public string ReportersEmail { get; set; }
|
|
|
|
|
|
|
|
|
|
public Category Category { get; set; }
|
|
|
|
|
|
|
|
|
|
public virtual ICollection<Answer> Answers { get; set; }
|
2018-12-01 22:12:59 +01:00
|
|
|
|
}
|
|
|
|
|
}
|