ASP.NET MVC with service layer and repository layer, where should the interfaces be defined?
- 阅读更多 关于 ASP.NET MVC with service layer and repository layer, where should the interfaces be defined?
I am in the process of determining a fairly simple layered architecture for a .NET MVC application that has a repository layer and a service layer. I have found some fairly clear and simple examples, notably www.asp.net , and some questions and answers here, but I am looking for something that is a little simpler, suitable for small applications, but that uses different projects, to get the idea across. The example I linked to above has the repository and service as classes in the Models namespace. That just isn't enough of a clear separation for me to be able to illustrate it properly. I have