Author: moting1a – Advantage of creating a generic repository vs. specific repository for each object?

The Question : 132 people think this question is useful We are developing an ASP.NET MVC application, and are now building the repository/service classes. I’m wondering if there are any major advantages to creating a generic IRepository interface that all repositories implement, vs. each Repository having its own unique interface and set of methods. For – Is it possible to have two partial classes in different assemblies represent the same class?

The Question : 131 people think this question is useful I have a class called ‘Article’ in a project called ‘MyProject.Data’, which acts as the data layer for my web application. I have a separate project called ‘MyProject.Admin’, which is a web-based admin system for viewing/editing the data, and was build using ASP.NET Dynamic Data.