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

21 lines
518 B
C#
Raw Normal View History

2020-12-12 14:47:20 +01:00
using Microsoft.EntityFrameworkCore;
using StudyLib.API.Models;
using StudyLib.Models;
using System;
namespace StudyLib.API.Data
{
public class StudyLibContext : DbContext
{
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; }
}
}