@using
@model
What else directives can be used at the top of a Razor view? In .aspx views, we have tens of directives that we can use at the top of our view, and since Razor is something new, many articles on the Internet about ASP.NET MVC talk in .aspx language and some of them use directives. For example in this article, an Assembly directive is required to make it work. I solved that issue, but after some amount of search, couldn’t find out a list of possible directives in Razor views, with their explanation.
Does such a list exist? Or am I still thinking the old way and missing something about Razor and @using and @model are the only directives we have in Razor views?
MyViewPageshould be derived fromSystem.Web.Mvc.WebViewPage<TModel>