deleted DataContext.cs
This commit is contained in:
parent
28a1b1d23a
commit
90f4f9dd51
1 changed files with 0 additions and 17 deletions
|
|
@ -1,17 +0,0 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using SurveyLib.Core.Models;
|
|
||||||
|
|
||||||
namespace SurveyLib.Infrastructure.EFCore.Data;
|
|
||||||
|
|
||||||
public class DataContext : 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 DataContext(DbContextOptions<DataContext> options) : base(options)
|
|
||||||
{
|
|
||||||
Database.EnsureCreated();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue