Hi everyone,
Can anyone explain repository pattern is good pattern to work with Entity Framework 6 (EF 6) or not.
Thank you.
Should I use the repository pattern with EF 6?
Ask by Simond Gear
Updated 14 Mar 2016
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