由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - A question about MVC
相关主题
问个MVC3的问题User control question:
新手提问:如何理解MVC中的前端(Frontend)和后端(backend)?Answer Re: ASP.NET 难题测试 (1)
MVC效率高一些,可是大项目也不可以推倒重做呀。C#.net 面试的题集
请推荐一本 .net web site 的入门书一个问题
感觉MVC比web form好用多了control array in .net
大家谈谈S.O.L.I.D.用在project上的经验教训。 (转载)XAML and similar projects
When do you want to use a Repeater control?混合语言编程
请问关于:Modeling Tools and Version Control -- Visual StRe: [转载] how to deploy a .NET project wi
相关话题的讨论汇总
话题: mvc话题: model话题: separate话题: project
进入DotNet版参与讨论
1 (共1页)
n******0
发帖数: 298
1
I am a beginner with MVC. Can anybody tell me how to put controller and
model into separate projects (assemblies)? Thanks.
s***o
发帖数: 2191
2
It as easy as to put them in a class library project and refer to them
in your web application.
...
Well this is just the case for your Model. For controllers, there are
more works to do because you need to tell the framework where to find
the controllers. Check for following links for more details:
http://stackoverflow.com/questions/401376/asp-net-mvc-put-contr
into-a-separate-project
http://forums.asp.net/t/1610265.aspx/1?
How+to+Move+Controllers+Models+into+a+New+Project+Assembly+in+MVC+2+
http://dotnetslackers.com/articles/aspnet/Storing-ASP-NET-MVC-
Controllers-Views-in-separate-assemblies.aspx#s8-why-bin-why

and

【在 n******0 的大作中提到】
: I am a beginner with MVC. Can anybody tell me how to put controller and
: model into separate projects (assemblies)? Thanks.

n******0
发帖数: 298
3
Thank you very much!

【在 s***o 的大作中提到】
: It as easy as to put them in a class library project and refer to them
: in your web application.
: ...
: Well this is just the case for your Model. For controllers, there are
: more works to do because you need to tell the framework where to find
: the controllers. Check for following links for more details:
: http://stackoverflow.com/questions/401376/asp-net-mvc-put-contr
: into-a-separate-project
: http://forums.asp.net/t/1610265.aspx/1?
: How+to+Move+Controllers+Models+into+a+New+Project+Assembly+in+MVC+2+

1 (共1页)
进入DotNet版参与讨论
相关主题
Re: [转载] how to deploy a .NET project wi感觉MVC比web form好用多了
dotnet的工作,去不去呢?大家谈谈S.O.L.I.D.用在project上的经验教训。 (转载)
asp.net问题急问(初级)When do you want to use a Repeater control?
高手帮忙看看.net下面编译常规c++程序的问题请问关于:Modeling Tools and Version Control -- Visual St
问个MVC3的问题User control question:
新手提问:如何理解MVC中的前端(Frontend)和后端(backend)?Answer Re: ASP.NET 难题测试 (1)
MVC效率高一些,可是大项目也不可以推倒重做呀。C#.net 面试的题集
请推荐一本 .net web site 的入门书一个问题
相关话题的讨论汇总
话题: mvc话题: model话题: separate话题: project