Update adding-model.md (#23800)

pull/23807/head
Rick Anderson 2021-11-08 15:49:57 -10:00 committed by GitHub
parent a5a355ad32
commit 84621a30d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,7 @@ The scaffolded pages can't be used yet because the database doesn't exist. Runni
## Build the app
Build the app. The compiler generates several warnings about how `null` values are handled. The released version of .NET 6 will scaffold code without these warnings. See [this GitHub issue](https://github.com/dotnet/Scaffolding/issues/1594) and [Nullable reference types](/dotnet/csharp/nullable-references) for more information.
Build the app. The compiler generates several warnings about how `null` values are handled. See [this GitHub issue](https://github.com/dotnet/Scaffolding/issues/1594) and [Nullable reference types](/dotnet/csharp/nullable-references) for more information.
To eliminate the warnings from nullable reference types, remove the following line from the *MvcMovie.csproj* file:
@ -253,6 +253,8 @@ To eliminate the warnings from nullable reference types, remove the following li
<Nullable>enable</Nullable>
```
We hope to fix this issue in the next release.
## Initial migration
Use the EF Core [Migrations](xref:data/ef-mvc/migrations) feature to create the database. *Migrations* is a set of tools that create and update a database to match the data model.