added Answer.cs
This commit is contained in:
parent
23a97fb900
commit
9b4670ab99
3 changed files with 14 additions and 0 deletions
12
SurveyLib.Core/Models/Answer.cs
Normal file
12
SurveyLib.Core/Models/Answer.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
namespace SurveyLib.Core.Models;
|
||||||
|
|
||||||
|
public class Answer
|
||||||
|
{
|
||||||
|
public int TryId { get; set; }
|
||||||
|
public int SurveyId { get; set; }
|
||||||
|
public int QuestionId { get; set; }
|
||||||
|
public string AnswerText { get; set; }
|
||||||
|
|
||||||
|
public Survey Survey { get; set; }
|
||||||
|
public QuestionBase Question { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -7,4 +7,5 @@ public class QuestionBase
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
public Survey Survey { get; set; }
|
public Survey Survey { get; set; }
|
||||||
|
public ICollection<Answer> Answers { get; set; }
|
||||||
}
|
}
|
||||||
|
|
@ -7,4 +7,5 @@ public class Survey
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
public ICollection<QuestionBase> Questions { get; set; }
|
public ICollection<QuestionBase> Questions { get; set; }
|
||||||
|
public ICollection<Answer> Answers { get; set; }
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue