Merge pull request #3464 from aspnet/master

Update live with current master
pull/3478/head
Tom Dykstra 2017-06-04 12:05:04 -07:00 committed by GitHub
commit c4043a9559
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ If you see an error message "*cannot access the file ... ContosoUniversity.dll b
## Examine the Up and Down methods
When you executed the `migrations add` command, EF generated the code that will create the database from scratch. This code is in the *Migrations* folder, in the file named *<timestamp>_InitialCreate.cs*. The `Up` method of the `InitialCreate` class creates the database tables that correspond to the data model entity sets, and the `Down` method deletes them, as shown in the following example.
When you executed the `migrations add` command, EF generated the code that will create the database from scratch. This code is in the *Migrations* folder, in the file named *\<timestamp>_InitialCreate.cs*. The `Up` method of the `InitialCreate` class creates the database tables that correspond to the data model entity sets, and the `Down` method deletes them, as shown in the following example.
[!code-csharp[Main](intro/samples/cu/Migrations/20170215220724_InitialCreate.cs?range=92-120)]