Back to list
Views:   8.1K
Replies:  1
Archived

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.
Volkan Genç, Jul 21, 2011
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.
Jul 28, 2011
Reply 1
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.
https://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext%28v=vs.113%29.aspx

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.

Kiran Kumar Gollapelly, Feb 04, 2015
Yes, (ssorry for being not clear) please share your thoughts.
Mar 01, 2011


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2