understood my mistake and created DataContext.cs with new name lol
This commit is contained in:
parent
90f4f9dd51
commit
8959c3d984
5 changed files with 25 additions and 8 deletions
17
SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs
Normal file
17
SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue