WHAT IS REPOSITORY PATTERN IN ASP.NET MVC?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
 7233  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    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).

    1) Repository pattern is used as a default entity operation that allow the decoupling of the components used for presentation.

    2) Repository pattern allows easy testing in the form of unit testing and mocking.

    3) Repository pattern will have the proper infrastructure services to be used in the web

     applications.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!