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
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.
Follow Along
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.
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