Update build command to include Mac (#13605)

* Update build command to include Mac

* Update new-field.md
pull/13609/head
LouisT123 2019-08-01 10:58:40 -07:00 committed by Rick Anderson
parent 69134d927c
commit 0f288e36e9
1 changed files with 15 additions and 1 deletions

View File

@ -27,7 +27,21 @@ Add a `Rating` property to *Models/Movie.cs*:
[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie22/Models/MovieDateRating.cs?highlight=13&name=snippet)]
Build the app (Ctrl+Shift+B).
Build the app
### [Visual Studio](#tab/visual-studio)
Ctrl+Shift+B
### [Visual Studio Code](#tab/visual-studio-code)
`dotnet build`
### [Visual Studio for Mac](#tab/visual-studio-mac)
Command ⌘ + B
------
Because you've added a new field to the `Movie` class, you need to update the binding white list so this new property will be included. In *MoviesController.cs*, update the `[Bind]` attribute for both the `Create` and `Edit` action methods to include the `Rating` property: