Salight
Salight
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
you helped me a lot
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
okay then i will dig into the first problem thank you a lot bud
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
then also my appsettings json is in secure too right ?
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
so is it secure to connect the database with connection string?
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
but lets just make the start
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
true
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
we don't have enough budget so the supabase was free we lean to that
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
we want to publish a website but we don't know which database we have to use
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
this thing i am doing is api
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
i mean i don't understand i just asked 5 days ago is it secure to keep my database crediantials in appsettings.json they said it is now you confused me is it
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
then you are saying u have to use public key and url?
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
why tho
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
damn it is getting more complex
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
can i use that in production ?
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
maybe it is because of that thank you i will look into that more deeply
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
but it is running really slow why is that
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
thank you for the help
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
oh okay
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
InnerException = {"23505: duplicate key value violates unique constraint \"PK_AspNetUsers\"\r\n\r\nDETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information."}
InnerException = {"23505: duplicate key value violates unique constraint \"PK_AspNetUsers\"\r\n\r\nDETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information."}
48 replies
CC#
Created by Salight on 11/1/2024 in #help
How can i connect to Supabase Database with my .net Api
i tried i was thinking it was not connecting but it actually was but the problem is i cannot send normal post method to database i can send post method but i need to add this to the dbcontext
protected override void OnConfiguring(DbContextOptionsBuilder optionsbuilder)
{
optionsbuilder.UseNpgsql("ConnectionString"
, option =>
{
option.EnableRetryOnFailure();
}
);

base.OnConfiguring(optionsbuilder);
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsbuilder)
{
optionsbuilder.UseNpgsql("ConnectionString"
, option =>
{
option.EnableRetryOnFailure();
}
);

base.OnConfiguring(optionsbuilder);
}
cs
option.EnableRetryOnFailure()
cs
option.EnableRetryOnFailure()
without this code it doesn't work and it gives exception again but it registers the data also i waited like 1 minute to register the data
48 replies