25 lines
719 B
C#
25 lines
719 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using MultipleChoiceTrainer.Models.DataModels;
|
|
|
|
namespace MultipleChoiceTrainer.Data
|
|
{
|
|
public class ApplicationDbContext : IdentityDbContext
|
|
{
|
|
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Category> Categories { get; set; }
|
|
public DbSet<Section> Sections { get; set; }
|
|
public DbSet<Question>Questions { get; set; }
|
|
public DbSet<Choice> Choices { get; set; }
|
|
public DbSet<Answer> Answers { get; set; }
|
|
}
|
|
}
|