Repository Pattern Standardization of methods

前端 未结 7 1717
天涯浪人
天涯浪人 2021-01-30 02:05

All I am trying to find out the correct definition of the repository pattern.

My original understanding was this (extremely dumbed down)

  • Separate your Busi
7条回答
  •  温柔的废话
    2021-01-30 02:27

    From Martin Fowler "Patterns of Enterprise Application Architecture", the definition of the Repository Pattern is:

    Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.

    So, both approaches are correct.

提交回复
热议问题