Configuring Entity Framework5:03 with James Churchill
Before we start updating the controller, two things are needed in order to ensure that EF is properly configured for our web app—configure the server and database that EF should use and configure the database initializer. We'll start with configuring the server and database.
To follow along committing your changes to this course, you'll need to fork the dotnet-comic-book-library-manager repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork> cd dotnet-comic-book-library-manager git checkout tags/v1.5 -b configuring-entity-framework
Entity Framework Config File Settings
In general, Entity Framework follows a "convention over configuration" principle. But sometimes you'll find that you need to explicitly change a setting. When you do, EF conveniently allows you to set a number of settings via your application's configuration file. For more information see https://msdn.microsoft.com/en-us/data/jj556606.aspx.
Customizing Web App Configuration per Environment
For information on how to customize configuration per environment, see the following resources.
You need to sign up for Treehouse in order to download course files.Sign up