Why we need Repository Pattern [Resolved]

Posted by Jayakumars under ASP.NET MVC on 4/23/2017 | Points: 10 | Views : 354 | Status : [Member] [MVP] | Replies : 2
Hi
Why we need Repository Pattern in mvc?

Repository pattern unit of work?

ANY ONE SHARE REPOSITORY PATTERN WITH UNITOFWORK WITH EXPLANATION WORKING CONDITION SOURCE CODE VS 2015

I TRIED SOME SAMPLE ERROR COMES ENABLE MIGRATION COMMAND ANY ONE GUIDE ME

Mark as Answer if its helpful to you


Responses

Posted by: Jitendrasoft09 on: 5/14/2017 [Member] [MVP] Starter | Points: 50

Up
0
Down

Resolved
Repository pattern is used for keeping common code inside it. It follows the loosely coupled concept. it interact with data layer and business layer not directly to your database. Similar example below-
http://www.codeguru.com/csharp/.net/net_asp/mvc/using-the-repository-pattern-with-asp.net-mvc-and-entity-framework.htm


Jitendra Kumar
If my post helps you, plz mark as an answer.

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

Posted by: Mary11 on: 5/18/2017 [Member] Starter | Points: 25

Up
0
Down
It's pretty useful.

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

Login to post response