开发者

MVC architecture: discussion

开发者 https://www.devze.com 2023-01-05 15:59 出处:网络
I am creating an application using asp.net MVC. By default, the model, view and controller a开发者_StackOverflowre all in the same project, but

I am creating an application using asp.net MVC. By default, the model, view and controller a开发者_StackOverflowre all in the same project, but can I create different projects or class library projects for the model, view and controller, so I could manage them separately? Is it recommended?


You definitely can. This part of the point of MVC to allow you to have such flexibility. As far as whether it is recommended, it depends on what you are doing. It is not necessity; however I think there are definitely many scenarios where it makes sense. Although, this probably makes the most sense for the model.

0

精彩评论

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