This will create the classes for supporting migrations.
⇓
Now, we need to apply those changes to the database.
Before that, make sure the connection string specified in the file points to the database server that we want to connect:
By default, the scaffolding process makes it point to the SQL Server Express local DB.
For applying the changes to the database, let’s run the following command:
Update-Database
This will update the database based on our models:
On birthdays during his childhood:
“When I was 10 there wasn’t trampolines and cartoon characters,
I never went to Chuck E. Cheese!
My mom said, ‘You wanna see a mouse,
pull the refrigerator out!’”
— George Lopez
@ViewData is a way to access the properties of ViewData, which is a dictionary-like object used to pass data from a controller to its corresponding view.
Right-click Home (Views) ⇒ Add ⇒ New Item... ⇒ Razor View–Empty