using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; using System; using System.Collections.Generic; using System.Text; namespace app.Data { public class DesignTimeContextFactory : IDesignTimeDbContextFactory { public DatabaseContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder.UseMySql( "server=localhost;user=sh_login_counter;password=mZaKBHY1lhzQoCAv;database=sh_login_counter", new MySqlServerVersion(new Version(10, 3, 32)) ); return new DatabaseContext(optionsBuilder.Options); } } }