开发者

ASP.NET MVC 2 RC areas and shared models

Once new area is created by the means of Visual Studio context menu, there are three folders: Controllers, Models, Views. Is it supposed that every area should have it's own model classes? Or is it acceptable/widely-used/good for all areas to share the same model classes in the root Models folder?

My project differs Domain Model and View Model, so Mode开发者_Python百科ls folder contain View Models.

And yes, several views of several areas seems to share the same View-Models some way.


If your View Models are shared by several Areas, put them into ~/Models - there is no any restiriction on that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜