Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
if code first you need to explicitly tell it to create them, not sure in how to do it in .Net framework, I used only db first approach.
But in .net core I use code first approach and I need to tell it to update database -
xewl41716yYou're adding a member to a table, that table doesn't exist, nor do you say to create this table anywhere if it doesn't?
My guess is that you'd need to set up the schema first, which is logical.. -
You have a command that will generate the script you can simply copy paste to the db and execute there.. something along the lines of
Update-Database -Script -SourceMigration: <initial-migration> -TargetMigration: <latest-migration> -
@inaba I know, sorry.. I never managed to do from VS what you're trying to do. Gave up trying altogether when I almost fucked up the project.. :/
Related Rants
-
rephiscorth38Everyone here ranting about a fucking missing semicolon. I can't remember the last time a missing semicolon wa...
-
CodesNotHot10-Laughed at Gitlab the other day -Accidentally dropped my db today. fuck karma
-
codeclod15When you have a super annoying problem that Google has been unable to help with... But you stumble upon a link...
STOOOOP TELLING ME THE TABLE DOESN'T EXIST. YOU'RE FUCKING SUPPOSED TO CREATE THE DAMN TABLE NOT TELL ME IT DOESN'T EXIST! YOU FUCKING DID IT AT HOME ON MY DESKTOP SO WHY DO YOU DO THIS TO MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEeeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
rant
works at home
entity framework
mysql
mariadb
fuck
on desktop
not on laptop
c#