ASP.NET Core example using 6 different Database-Provider
//SQL-Server
services.AddDbContext(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
//SQLite
services.AddDbContext(options => options.UseSqlite(Configuration.GetConnectionString("DefaultConnection")));
//MariaDB
services.AddDbContext(options => options.UseMySql(Configuration.GetConnectionString("DefaultConnection")));
//MySQL
services.AddDbContext(options => options.UseMySql(Configuration.GetConnectionString("DefaultConnection")));
//Postgres
services.AddDbContext(options => options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection")));
//MongoDB
services.Configure( Configuration.GetSection(nameof(DatabaseSettings)));