← BYTES
Design Patterns·Starter·Ref: 17.1.19

What is the key idea behind the Repository pattern?

Have a question about this video? Mention reference 17.1.19 when you contact us.

a.Storing all application data exclusively in memory with no persistence
b.A pattern used only for version-controlling source code
c.Providing a collection-like interface (e.g., add, get, find, remove) for accessing domain objects, hiding the underlying data-access/persistence details (SQL, an ORM, a remote API) behind that interface
d.A pattern that eliminates the need for any database whatsoever
Repository presents domain/business code with a simple, collection-like interface for retrieving and storing objects, while hiding the actual persistence mechanism (which database, which query language, which ORM) behind that interface -- letting business logic depend on a simple abstraction rather than persistence-specific details.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES17119#DesignPatterns