summaryrefslogtreecommitdiff
path: root/Models/LibraryContext.cs
blob: b07ba54f8d7342b8527461daf4092da1eb52259c (plain)
1
2
3
4
5
6
7
8
9
using Microsoft.EntityFrameworkCore;

namespace LibraryAPI.Models {
    public class LibraryContext : DbContext {
        public DbSet<Author>? Authors { get; set; }
        public DbSet<Book>? Books { get; set; }
        public LibraryContext(DbContextOptions<LibraryContext> options) : base(options) {}
    }
}