Home > DeveloperSection > Forums > Should I use the repository pattern with EF 6?
Simond Gear
Simond Gear

Total Post:9

Points:63
Posted on    March-14-2016 11:39 PM

 ASP.Net ASP.Net  ASP.NET MVC  Mvc  Entity Framework 
Ratings:


 2 Reply(s)
 249  View(s)
Rate this:
Hi everyone,
 
Can anyone explain  repository pattern is  good pattern to work with Entity Framework 6 (EF 6) or not.
Thank you.


Simond Gear
Simond Gear

Total Post:9

Points:63
Posted on    March-14-2016 11:44 PM

Please Give me in details with example or refer any link?



Modified On Mar-14-2016 11:47:17 PM

Anupam Mishra

Total Post:135

Points:949
Posted on    March-14-2016 11:51 PM

Hi Simond,


I do not see any reason for the Repository pattern to not work with Entity Framework.because Repository pattern is an abstraction layer we put on our data access layer. Our data access layer can be anything from pure ADO.NET stored procedures to Entity Framework or an XML file.
In large systems, where we have data coming from different sources (database/XML/web service), it is good to have an abstraction layer.  I do not believe that Entity Framework is enough abstraction to hide what goes on behind the scenes.
For more details: Click Here


Don't want to miss updates? Please click the below button!

Follow MindStick