阅读背景:

Asp.Net Mvc:无法从我的视图访问我的模型命名空间

来源:互联网 

So I have a ViewModel in the 'models' folder of my Mvc project with a namespace of 'Web.Models' (My Mvc project is called 'Web') I think its worth mentioning I have 3 other projects in my solution: Domain, Test, and Tasks. The view model is assigned properties from classes in my Domain.Entities folder. I can create a new instance of my viewmodel in my controller when I add the namespace in my contoller.So I have a ViewModel in the 'models' folder of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: