Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Now let's take a look at the Code First workflow, which allows you to define your model by directly writing the code for your entity and context classes. We'll also add the first entity to our model.
Code First from Existing Database
It's possible to use the Code First workflow with an existing database, by generating your entity and context classes from your database. Generally speaking, this is a one-time operation. Future updates to your entity classes are typically done manually.
For more information on this process, see this tutorial:
http://www.entityframeworktutorial.net/code-first/code-first-from-existing-database.aspx
Additional Learning
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated 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