Razor in class library, missing intellisense

◇◆丶佛笑我妖孽 提交于 2019-12-05 09:10:34

When using dynamic you lose the benefits of Intellisense. You should try using a strongly-typed view. In the Controller, try specifying the model via an overload of the View method where you pass in the model instance. This sets the value of the ViewData.Model property to the value passed into the View method. Then indicate to the view what type of model is using the @model declaration. You may need to supply the fully qualified type name of the model type.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!