What is relationship between Repository and Unit of Work?

  • The Repository and Unit of Work patterns are interchangeable, as they both provide similar functionality and can be used interchangeably in a project.
  • The Repository and Unit of Work patterns are not related, as they are completely separate design patterns with different purposes.
  • The Repository and Unit of Work patterns are related, as the Unit of Work is responsible for managing the persistence of data changes, while the Repository provides an abstraction over the data access layer. The Repository can use the Unit of Work to persist changes to the data.
  • The Repository and Unit of Work patterns are the same, as they are both used to manage the persistence of data changes.
The Repository and Unit of Work patterns are related, as the Unit of Work is responsible for managing the persistence of data changes, while the Repository provides an abstraction over the data access layer. The Repository can use the Unit of Work to persist changes to the data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *