Stage
Stage
CC#
Created by Stage on 11/10/2024 in #help
Possible race condition?
Appreciate the quick reply
6 replies
CC#
Created by Stage on 11/10/2024 in #help
Possible race condition?
Would have to check with the person who implemented this lol. I'll read up on transient, I've never used it actually
6 replies
CC#
Created by Stage on 11/10/2024 in #help
Possible race condition?
Ahh okay - yeah I forgot that it being scoped protects against that from a request standpoint
6 replies
CC#
Created by Kris on 8/6/2023 in #help
❔ Host Can't be Null error when trying to run db migration using postgres
Reviving this just to tell anyone who stumbles across this like I did: The only thing that fixed this for me was to remove my design-time DbContextFactory implementation, which had a default constructor. A tell-tale sign you have the same issue is to run dotnet ef database update with a valid connection string as a CLI argument: --connection "<connection str>". The key is to get rid of any design-time factories / ways a DbContext can be instantiated without valid credentials. Hope this helps! (This assumes you have an otherwise valid configuration etc.)
18 replies