I\'ve been confused by what I\'ve been reading during my research on the repository pattern. I\'m wondering if folks are (incorrectly?) using that word when they simply mean a d
In general I agree with author's statements, but I'd like to add some details
Difference between Repository and DAL/ORM that first not only abstracts the persistence mechanism, but also provides collection-like interface for accessing domain objects … and isolates domain objects from details of the database access code:
For external layers, such as Business Logic:
IEnumerable
, rather then entity-framework context or nhibernate sessionRepository contains DAL/ORM underneath and serves same purpose