C
C#2y ago
Mov

Rider not showing localdb?

Hey all! I'm learning about db migrations and created one successfully. However, when I go to the database tab in rider, it doesn't show my db or tables. what am I doing wrong?
9 Replies
Mov
MovOP2y ago
my db name is "RecipeApplication" but i can't seem to find it
jcotton42
jcotton422y ago
did you apply the migration as well? oh kek I see the output window
Mov
MovOP2y ago
yes by "dotnet ef database update", right?
jcotton42
jcotton422y ago
ye what if you update the URL in the data sources window to match what EF is using?
Mov
MovOP2y ago
it matches the server my config file:
"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=RecipeApplication;Trusted_Connection=True;MultipleActiveResultSets=true"
"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=RecipeApplication;Trusted_Connection=True;MultipleActiveResultSets=true"
I assume the migration creates the db as well, no?
jcotton42
jcotton422y ago
I don't see a Database= in this window yes
Mov
MovOP2y ago
ohhh.... clicking randomly does help kek apparently rider does that thing where it hides stuff from you
Mov
MovOP2y ago
by clicking those numbers, I was able to force it to show the database
Mov
MovOP2y ago
bad design if you ask me but ohh well, as long as it worked xD Thanks for the help!
Want results from more Discord servers?
Add your server