added more question variants

This commit is contained in:
Вячеслав 2025-04-16 16:42:56 +05:00
parent 8959c3d984
commit cce3ea2645
6 changed files with 34 additions and 1 deletions

View file

@ -6,12 +6,16 @@ namespace SurveyLib.Infrastructure.EFCore.Data;
public class SurveyDbContext : DbContext
{
public DbSet<Survey> Surveys { get; set; }
public DbSet<QuestionBase> Questions { get; set; }
public DbSet<SingleAnswerQuestion> SingleAnswerQuestions { get; set; }
public DbSet<MultipleAnswerQuestion> MultipleAnswerQuestions { get; set; }
public DbSet<TextQuestion> TextQuestions { get; set; }
public DbSet<Completion> Completions { get; set; }
public DbSet<Answer> Answers { get; set; }
public SurveyDbContext(DbContextOptions<SurveyDbContext> options) : base(options)
{
}
}