2020-12-16 21:41:14 +01:00
|
|
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2020-12-12 14:47:20 +01:00
|
|
|
|
using StudyLib.API.Models;
|
|
|
|
|
using StudyLib.Models;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace StudyLib.API.Data
|
|
|
|
|
{
|
2020-12-20 18:53:24 +01:00
|
|
|
|
public class StudyLibContext : IdentityDbContext<User>
|
2020-12-12 14:47:20 +01:00
|
|
|
|
{
|
|
|
|
|
public StudyLibContext(DbContextOptions<StudyLibContext> options) : base(options)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DbSet<Subject> Subjects { get; set; }
|
|
|
|
|
public DbSet<Assignment> Assignments { get; set; }
|
|
|
|
|
public DbSet<Comment> Comments { get; set; }
|
|
|
|
|
public DbSet<Test> Tests { get; set; }
|
2020-12-13 01:23:12 +01:00
|
|
|
|
public DbSet<SubjectDeleteRequest> SubjectDeleteRequests { get; set; }
|
2020-12-20 18:53:24 +01:00
|
|
|
|
public DbSet<User> Users { get; set; }
|
2020-12-12 14:47:20 +01:00
|
|
|
|
}
|
|
|
|
|
}
|