29 lines
625 B
C#
29 lines
625 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Forum.DataAccessLayer.Models
|
|
{
|
|
public class Question
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Nick { get; set; }
|
|
|
|
public DateTime PostDate { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
|
|
public string Content { get; set; }
|
|
|
|
public bool IsClosed { get; set; }
|
|
|
|
[EmailAddress]
|
|
public string ReportersEmail { get; set; }
|
|
|
|
public Category Category { get; set; }
|
|
|
|
public virtual ICollection<Answer> Answers { get; set; }
|
|
}
|
|
}
|