using System; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; namespace BlueWest.WebApi; public static class StartupExtensions { public static void GetSqlSettings(this DbContextOptionsBuilder optionsBuilder, IConfiguration configuration) { optionsBuilder.UseMySql(configuration.GetConnectionString("LocalMySQL"), new MySqlServerVersion(new Version(8, 0, 11))); } }