Adding Our First Entity Using the Code First Workflow6:02 with James Churchill
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:
You need to sign up for Treehouse in order to download course files.Sign up