using EstusShots.Server.Models; using Microsoft.EntityFrameworkCore; namespace EstusShots.Server.Services { public class EstusShotsContext : DbContext { public EstusShotsContext(DbContextOptions options) : base(options) { Database.EnsureCreated(); } public DbSet Seasons { get; set; } = default!; public DbSet Episodes { get; set; } = default!; protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable(nameof(Season)); modelBuilder.Entity().ToTable(nameof(Episode)); } } }