using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace SteUp.Data.LocalDb; public class AppDbContextFactory : IDesignTimeDbContextFactory { public AppDbContext CreateDbContext(string[] args) { var options = new DbContextOptionsBuilder() .UseSqlite("Data Source=design-time.db3") .Options; return new AppDbContext(options); } }