---
title: "What is Repository Pattern in ASP.NET MVC?"  
description: "What is Repository Pattern in ASP.NET MVC?"  
author: "Anonymous User"  
published: 2012-07-16  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1485/what-is-repository-pattern-in-asp-dot-net-mvc  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 2 minutes  

---

# 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.

## Answers

### Answer by Anonymous User

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.


---

Original Source: https://www.mindstick.com/interview/1485/what-is-repository-pattern-in-asp-dot-net-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
