Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update existing-database.md #3713

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ This article covers using Code First Migrations with an existing database, one t
> [!NOTE]
> This article assumes you know how to use Code First Migrations in basic scenarios. If you don’t, then you’ll need to read [Code First Migrations](xref:ef6/modeling/code-first/migrations/index) before continuing.

## Screencasts

If you'd rather watch a screencast than read this article, the following two videos cover the same content as this article.

### Video One: "Migrations - Under the Hood"

[This screencast](https://channel9.msdn.com/blogs/ef/migrations-under-the-hood) covers how migrations tracks and uses information about the model to detect model changes.

### Video Two: "Migrations - Existing Databases"

Building on the concepts from the previous video, [this screencast](https://channel9.msdn.com/blogs/ef/migrations-existing-databases) covers how to enable and use migrations with an existing database.

## Step 1: Create a model

Your first step will be to create a Code First model that targets your existing database. The [Code First to an Existing Database](xref:ef6/modeling/code-first/workflows/existing-database) topic provides detailed guidance on how to do this.
Expand Down