在阅读一篇名为Layered Application Guidelines(http://msdn.microsoft.com/en-us/library/ee658109.aspx)的文章后,我有一些问题.
例如,我有一个ASP.NET MVC应用程序.在我的应用程序中,我有一些实体(模型),存储库,UnitOfWork和DbContext.还有一些视图和控制器.
如何根据上面的文章将它们分成几层?
据我所知,视图和(可能)控制器驻留在表示层中.业务层和存储库中的实体(模型),数据层中的UnitOfWork和DbContext.
我是对还是错?我非常不确定.
提前致谢!

我有5个实体:
public class Album
{
public int Id { get; set; }
public string Title { get; set; }
public virtual List<AlbumArtist> AlbumArtists { get; set; }
public virtual List<Artist> Artists { get; set; }
public virtual List<Genre> Genres { get; set; }
public virtual List<Song> Songs { get; set; }
}
public class AlbumArtist
{
public int Id { get; set; }
public string Title { get; set; }
public virtual List<Album> Albums { get; set; }
public virtual …Run Code Online (Sandbox Code Playgroud)