December 2019
Intermediate to advanced
510 pages
11h 33m
English
The simplest way to create an in-memory repository is to define a singleton class with a private attribute, which represents a collection of elements. The repository will be initialized as a singleton type; therefore, this specific life cycle guarantees that data will be persistent until the application is restarted.
First of all, we need a model that represents the data we want to store using our repository. Let's create a new folder, called Models, and create a new ...
Read now
Unlock full access