Repository Pattern vs DAL

后端 未结 12 2087
Happy的楠姐
Happy的楠姐 2020-12-02 04:05

Are they the same thing? Just finished to watch Rob Connery\'s Storefront tutorial and they seem to be similar techinques. I mean, when I implement a DAL object I have the G

12条回答
  •  伪装坚强ぢ
    2020-12-02 04:24

    From what I understand they can mean basically the same thing - but the naming varies based on context.

    For example, you might have a Dal/Dao class that implements an IRepository interface.

    Dal/Dao is a data layer term; the higher tiers of your application think in terms of Repositories.

提交回复
热议问题