global using App01.Data; global using Microsoft.EntityFrameworkCore; global using Pomelo.EntityFrameworkCore.MySql; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); builder.Services.AddDbContext(options => { var connectionString = builder.Configuration.GetConnectionString("DefaultConnection"); var serverVersion = new MySqlServerVersion(new Version(8, 0, 27)); options.UseMySql(connectionString, serverVersion); }); //...