diff --git a/aspnetcore/tutorials/first-mvc-app/new-field.md b/aspnetcore/tutorials/first-mvc-app/new-field.md index bf3bf27511..3a269cc2c0 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field.md @@ -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: