This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Welcome to Entity Framework Basics 2:37
- What is Entity Framework? 4:19
- Entity Framework Review 5 questions
- Workflows: Database First 6:19
- Workflows: Model First 5:50
- Adding Our First Entity Using the Code First Workflow 6:02
- Adding an Entity 2 objectives
- Adding Our Context 3:03
- Adding a Context 2 objectives
- Using the Context 5:03
- Section Review 10 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Let's add a context class to our project, so we can persist and retrieve data from our database.
Follow Along
To follow along commiting your changes to this course, you'll need to fork the dotnet-comic-book-gallery-model repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd dotnet-comic-book-gallery-model
git checkout tags/v1.6 -b adding-our-context
Additional Learning
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Andre Martins
1,629 PointsVS not recognizing a DbContext and not displaying the "using System.Data.Entity;" option, neither recognizing it if typd
Posted by Andre MartinsAndre Martins
1,629 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up