using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; using UserPointManagement.Persistence; namespace UserPointManagement.Web; public class UserPointManagementDbContextFactory : IDesignTimeDbContextFactory { public UserPointManagementDbContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder .UseNpgsql("Server=67.230.184.225;Port=58007;UserId=postgres;Password=postgres;Database=tiamo;") .UseSnakeCaseNamingConvention(); return new UserPointManagementDbContext(optionsBuilder.Options); } }