added QuestionBase.cs

This commit is contained in:
Вячеслав 2025-03-12 22:56:20 +05:00
parent edbcc495d2
commit 23a97fb900
2 changed files with 12 additions and 0 deletions

View 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; }
}

View file

@ -5,4 +5,6 @@ public class Survey
public int Id { get; set; } public int Id { get; set; }
public string Title { get; set; } public string Title { get; set; }
public string Description { get; set; } public string Description { get; set; }
public ICollection<QuestionBase> Questions { get; set; }
} }