added QuestionBase.cs
This commit is contained in:
parent
edbcc495d2
commit
23a97fb900
2 changed files with 12 additions and 0 deletions
10
SurveyLib.Core/Models/QuestionBase.cs
Normal file
10
SurveyLib.Core/Models/QuestionBase.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace SurveyLib.Core.Models;
|
||||
|
||||
public class QuestionBase
|
||||
{
|
||||
public int Id { get; set; } // TODO: А ведь их наверное много будет, вдруг int однажды не хватит...
|
||||
public int SurveyId { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
public Survey Survey { get; set; }
|
||||
}
|
||||
|
|
@ -5,4 +5,6 @@ public class Survey
|
|||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public ICollection<QuestionBase> Questions { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue