This course will be retired on June 1, 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
Start a free Courses trial
to watch this video
The `Up` and `Down` methods in the migration class use the Migration Fluent API to update the database. Let's take a look at some of the methods in the DbMigration base class that make up the Migration Fluent API.
Follow Along
To follow along commiting your changes to this course, you'll need to fork the dotnet-ef-migrations repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd dotnet-ef-migrations
git checkout tags/v1.5 -b the-migration-fluent-api
Additional Learning
For more information on how to define EF entity relationships, see the following Treehouse course that covers the basics of EF.
See the following article for more information about database indexes.
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