To start with lets us take up the two most important questions, “What” and “Why”
What is Repository Pattern?
Repository pattern is basically a layer to separate the Data access logic, thus avoiding duplication of Data Access Logic. It has direct access to Database, ORM etc. The repository behaves like a collection of data to which we can add, delete and update objects.
Why use Repository Pattern?
Let us take the example of an MVC application with Entity Framework, now in case of a basic...