using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace Server; public class AppDbContextFactory : IDesignTimeDbContextFactory { public AppDbContext CreateDbContext(string[] args) { var options = new DbContextOptionsBuilder() .UseNpgsql("Host=localhost;Database=chrono;Username=postgres;Password=postgres") .Options; return new AppDbContext(options); } }