What are Strongly Typed Views

Razor views in MVC can be strongly typed based on your model. Controllers can pass a strongly typed model to views enabling your views to have type checking and IntelliSense support.

For example, the following view defines a model of type IEnumerable:

@model IEnumerable

    @foreach (Product p in Model)

  • @p.Name
  • }

Source: asp.net

Leave a Reply

Your email address will not be published. Required fields are marked *