This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Lesson 16 (ORM Part 1)
Sally Steuterman edited this page Jul 28, 2020
·
1 revision
- What object-relational mapping is.
- How to connect an ASP.NET Core MVC application to a MySQL database.
- How to create a new migration and update the database.
- How to create a
DbContext
.
- Assignment #4 is open and students can start working on it!
- Check with your course manager for any additional announcements.
- Review the relationship between C# classes/objects and database tables/rows.
- The students went through a number of different steps to get their ASP.NET apps going and storing events. Review each setup step and why it matters.
- Creating a new schema and add a new user in MySQL Workbench.
- Add the necessary dependencies in ASP.NET.
- Add the user info for the schema in MySQL into
appsettings.json
.
- Review what a model class is and what it becomes in a relational database.
- Review what a migration is and what it means for a relational database.
- Review the studio!
- If students didn't finish the exercises, they need to start with the exercises first. If they did not finish following along with the videos, they need to check out the appropriate branch in their
CodingEventsDemo
repository to see what they have left. If they do not have this branch, they need to fetch it from the upstream.- To do so, they need to make sure the upstream is set up with
git remote -v
and double check that they are onmaster
. - With the upstream present, run
git fetch upstream
- Then merge the upstream into the forked repo with
git merge upstream/master
.
- To do so, they need to make sure the upstream is set up with
- Check in with your students!