understood my mistake and created DataContext.cs with new name lol

This commit is contained in:
Вячеслав 2025-04-01 16:59:53 +05:00
parent 90f4f9dd51
commit 8959c3d984
5 changed files with 25 additions and 8 deletions

View file

@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore;
using SurveyLib.Core.Models;
namespace SurveyLib.Infrastructure.EFCore.Data;
public class SurveyDbContext : DbContext
{
public DbSet<Survey> Surveys { get; set; }
public DbSet<QuestionBase> Questions { get; set; }
public DbSet<Completion> Completions { get; set; }
public DbSet<Answer> Answers { get; set; }
public SurveyDbContext(DbContextOptions<SurveyDbContext> options) : base(options)
{
}
}