using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace Elements.Data; public class ApplicationContextFactory : IDesignTimeDbContextFactory { public ApplicationDbContext CreateDbContext(string[] args) { DbContextOptionsBuilder optionsBuilder = new(); optionsBuilder.UseSqlite("Data Source=elements.db"); return new ApplicationDbContext(optionsBuilder.Options); } }