Should I use the repository pattern with EF 6?

Total Post:26

Points:182
 836  View(s)
Ratings:
Rate this:
Hi everyone,
 
Can anyone explain  repository pattern is  good pattern to work with Entity Framework 6 (EF 6) or not.
Thank you.
  1. Post:26

    Points:182
    Re: Should I use the repository pattern with EF 6?

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


      Modified On Mar-14-2016 11:47:17 PM
  1. Post:135

    Points:949
    Re: Should I use the repository pattern with EF 6?

    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

Answer