How does the Repository Pattern Differ from a Simple Data Access Layer?

后端 未结 2 341
不思量自难忘°
不思量自难忘° 2021-01-30 22:57

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

2条回答
  •  梦如初夏
    2021-01-30 23:56

    Take a look at the "Using the IQueryable interface" section and beyond at Extending and Enhancing the Orders and Registrations Bounded Context. It provides an insightful and balanced discussion of DAO/Repository implementations.

    As subsequently highlighted by Bob Horn, the Persistence Patterns articles summarises that:

    Basically, the Repository pattern just means putting a façade over your persistence system so that you can shield the rest of your application code from having to know how persistence works.

提交回复
热议问题