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

26 lines
831 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-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-21 23:31:53 +01:00
public DbSet<Group> Groups { get; set; }
public DbSet<GroupCandidate> GroupCandidates { get; set; }
2020-12-12 14:47:20 +01:00
}
}