Saturday, 25 October 2014

What is Repository Pattern in ASP.NET MVC?

        The repository and unit of work patterns are intended to create an abstraction layer between the data access layer.
and the business logic layer of an application. Implementing these patterns can help insulate your application from changes in the data store and can facilitate automated unit testing or test-driven development (TDD).


  • Repository pattern is used as a default entity operation that allow the decoupling of the components used for presentation.
  • Repository pattern allows easy testing in the form of unit testing and mocking.
  • Repository pattern will have the proper infrastructure services to be used in the web applications.

No comments:

Post a Comment