Home  /  Questions  /  Question

88   96.5
Jul 21, 2011

Repository Layer for the Entity Framework

Is there an existing Repository Layer for the Entity Framework?
Furthermore, what is the difference between DAL with Respository Layer?

Best Regards and thanks.
 1 comment
Repository is way of implementing your DAL and generally used with DDD style design where you have one repository for each aggergate in your domain model. You'll also want to look into Unit of Work. --- Ryan Andrus  Jul 28, 2011

Feb 04, 2015
The DBContext class from Entity framework 5.0 or above, it default supports the repository and Unit of Work patterns together. It is an implementation with the combination of both patterns.
Please refer the following link.

When this question was posted, by that time atleast entity framework 5.0 would not have released. But now i feel this could be a right approach.