IcEiE
Entity Framework Core Migration to Supabase Hangs Indefinitely
I tested the connection string with this code when starting the project:
using (var scope = app.Services.CreateScope())
{
var services = scope.ServiceProvider;
try
{
var context = services.GetRequiredService<ApplicationDbContext>();
using (var connection = (NpgsqlConnection)context.Database.GetDbConnection())
{
connection.Open();
Console.WriteLine("Successfully connected to the database.");
}
}
catch (Exception ex)
{
Console.WriteLine($"An error occurred while connecting to the database: {ex.Message}");
}
}
Yea will do, just wanted to check if I missed something7 replies