21 lines
518 B
C#
21 lines
518 B
C#
![]() |
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; }
|
|||
|
}
|
|||
|
}
|