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

namespace LibraryAPI.Models {
    public class LibraryContext : DbContext {
        public DbSet<Book>? Books { get; set; }
        public LibraryContext(DbContextOptions<LibraryContext> options) : base(options) {}
        //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        //    => optionsBuilder.UseNpgsql("Host=127.0.0.1;Database=library;Username=luis");
    }
}