I have some views that did not have a model at the time of creation, meaning that I couldn’t create them as strongly typed views. Now they have models and I would like to change that to provide intellisense for model properties when writing code in the views. Is there some type of configuration which enables a strongly typed view?
Share
Look at the top of your view. The model declaration should be editable as the first line on the view. If it doesn’t have one, here are the approrpriate declarations:
Razor:
@model Models.MyModelASP.NET: