Sample application for Repository Pattern in ASP.NET MVC

Posted by Manimaddu under ASP.NET MVC on 8/8/2014 | Points: 10 | Views : 3789 | Status : [Member] | Replies : 3
Hi All...

Can any one give Sample application for Repository Pattern in ASP.NET MVC. Because I have confusion how to use Repositories in our application and what is the use of repositories.

Thanks in Advance...

Thanks & Regards,
Mani Kumar



Responses

Posted by: Bandi on: 8/8/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://www.codeguru.com/csharp/.net/net_asp/mvc/using-the-repository-pattern-with-asp.net-mvc-and-entity-framework.htm

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Manimaddu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: kgovindarao523-21772 on: 8/8/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
Here is the references for why Repository pattern used and How to implement this pattern.

http://www.codeproject.com/Articles/600097/Why-the-Repository-Pattern
http://www.asp.net/mvc/tutorials/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

Thank you,
Govind

Manimaddu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kasani007 on: 8/9/2014 [Member] Starter | Points: 25

Up
0
Down
Repository Pattern is to decouple the data access code from our Controllers and that helps us to simplify Unit Testing our controllsrs.

Repository Is an Interface which contains the definitions for all data-access methods.

Manimaddu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response