1
Vote

Cannot create strongly typed views and use intellisense

description

I am working in strongly typed view mode in my site, for clarity and ease of use for my developers.

currently, even if i declare a type in my view, I cannot use VS intellisense in my views as my model is dynamic.

to reproduce:
write in the view
@model = MyModelClass
the generated code is correctly stating:
public partial class MyView : System.Web.Mvc.WebViewPage<MyModelClass>
but in the precompiled view itself model is dynamic and the view inherits from System.Web.Mvc.WebViewPage;

can you add something to fix the intellisense ?

thanks.

comments