Where is my Create Strongly Typed View option in MVC 5 Visual Studio 2013

I'm starting to create MVC 5 applications. But in the controller, right-click inside the Create action method, select Create View. A menu appears where I can select a model, etc., but now there is no way to select "Create a strongly typed view." See screenshot below.

Screen shot

+5
source share
2 answers

Hi MVC3 / or Visual Studio 2015 does not allow you to select a "Strongly typed view", instead, the following steps must be performed to implement strongly typed views.

Create your project before starting the following steps to get the model in the list, to choose it as much.

  • Right-click the controller to create the view.

enter image description here

  1. By default, you will see the following screen

enter image description here

  1. Change template settings: Empty (no model) to Empty, as shown below

enter image description here

  1. This will allow you to select the "Strongly printed" view.

enter image description here

  1. When the View is created, it will look like this

enter image description here

Let me know in case of any queries.

+9
source

VS2013 slightly changed the language. To create a "strongly typed" view, start the create dialog and select any template other than "Empty (no model)". Now you can select your model from the Model Class drop-down list. This will create the equivalent of a strongly typed representation.

+3
source

Source: https://habr.com/ru/post/1212715/


All Articles