|
12
|
| Alexander · 技术社区 · 17 年前 |
|
|
1
6
MyProject.BaseSite (class library)
+ Controllers
- HomeController.cs
- ... any other controllers
- default.aspx.cs
- global.asax.cs
MyProject.ExampleSite
+ Content
+ scripts
+ css
+ images
+ Views
+ Home
- index.aspx
- .. other aspx files
+ Shared
- Site.master
- web.config
|
|
2
2
为每一层职责创建一个单独的类库项目,编译以创建程序集,然后在适当的情况下在应用程序中引用每一层。 |
|
|
3
1
dependency injection 容器,那么它们的配置数据通常不仅指定要响应特定查询加载的类,还指定要从中加载的程序集。这允许您在任意程序集中拆分类,MVC仍然能够找到它们。
|
|
|
4
1
我意识到这是一个非常古老的问题,但我写了一篇关于如何准确满足你要求的文章 |
|
|
5
0
如果您的项目由以下人员管理
|