using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace IntroSkipper.Db; /// /// IntroSkipperDbContext factory. /// public class IntroSkipperDbContextFactory : IDesignTimeDbContextFactory { /// public IntroSkipperDbContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder.UseSqlite("Data Source=introskipper.db") .EnableSensitiveDataLogging(false); return new IntroSkipperDbContext(optionsBuilder.Options); } }