ASP.NET解决方案的典型结构? [英] Typical structure of an ASP.NET solution?

查看:115
本文介绍了ASP.NET解决方案的典型结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说,我想知道你通常如何组织你的ASP.NET解决方案。

As the title says, I'm interested to know how you typically structure your ASP.NET solutions.

我特别感兴趣的 ASP.NET网页解决方案,但紧靠其他类型(WebApplication的,MVC)的信息可能是有趣的为好。

I'm especially interested in ASP.NET WebSite solutions, but information abut other types (WebApplication, MVC) might be interesting as well.

一些具体的问题:


  • 什么/许多项目/组件解决方案如何包含

  • 你怎么命名类库项目

  • 命名空间是什么你通常​​有

  • 你有每个项目/装配多个命名空间还是有严格的1:1的关系


感谢

推荐答案

我的一个项目是这样的:

One of my projects looks like:


  • SLN

    • Sln.Core

    • Sln.Core.Test

    • Sln.Data
    • Sln.Data.Test

    • Sln.Web

    • Sln.Web.Test

    核心是域模型和领域服务,只要它们可以在不步入持久性来完成。数据持久层,这基本上意味着FluentNHibernate定义和在核心定义的接口的具体实现。幅是前端层

    Core is the domain model and domain services, as far as they can be done without stepping into persistence. Data is the persistence layer, which basically means FluentNHibernate definitions and concrete implementations of interfaces defined in Core. Web is the front-end layer.

    这篇关于ASP.NET解决方案的典型结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆