....
This commit is contained in:
28
Back/Data/Models/Question.cs
Normal file
28
Back/Data/Models/Question.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
public class QuestionCategory
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
#region Navigation
|
||||
public virtual ICollection<Question> questions { get; set; }
|
||||
#endregion
|
||||
}
|
||||
public class Question
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int QuestionCategoryID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Answer { get; set; }
|
||||
public bool Status { get; set; }
|
||||
|
||||
#region Navigation
|
||||
[ForeignKey("QuestionCategoryID")]
|
||||
public virtual QuestionCategory questionCategory { get; set; }
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user