Repository Pattern in Layered Architecture
I've gone through quite a few articles on the repository pattern and had some questions. I'm trying to implement this in a ASP.NET 4.0 application. The architecture is a layered architecture with a Presentation Layer, Business Layer and Data Layer. From this article, http://www.primaryobjects.com/CMS/Article108.aspx I have created the MYSQLRepository (DataLayer) public class MySQLRepository:IOrderRepository { public List<Order> GetOrders() { List<Order> orders = new List<Order>(); orders.Add(new Order(1,"A")); orders.Add(new Order(2,"B")); return orders; } } My Business Layer looks like this