IcEiE
IcEiE
CC#
Created by IcEiE on 9/18/2024 in #help
Entity Framework Core Migration to Supabase Hangs Indefinitely
Just to add, when I run a local postgres database the migration works as intended.
7 replies
CC#
Created by IcEiE on 9/18/2024 in #help
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 something
7 replies
CC#
Created by IcEiE on 9/18/2024 in #help
Entity Framework Core Migration to Supabase Hangs Indefinitely
As you see it's a really simple application because couldn't get it to work on a bigger one so wanted to test it out with minimal overhead.
7 replies