study-lib-backend/API/Data/StudyLibContext.cs

23 lines
662 B
C#
Raw Normal View History

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-16 21:41:14 +01:00
public class StudyLibContext : IdentityDbContext
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-12 14:47:20 +01:00
}
}