Architecting in the pit of doom: The evils of the repository abstraction layer
Architecting in the pit of doom: The evils of the repository abstraction layer
The whole purpose of a repository is to provide an in memory collection interface to a data source, but that pattern was established at a time where the newest thing on the block was raw SQL calls. Consider what NHibernate is doing, and you can see that here, one implementation of an in memory collection interface on top of a data store is wrapped in another, and it does nothing for us except add additional code and complexity.
No comments:
Post a Comment