0

Update all data in a simple way?

In each code we may have 3 parts. 1. Database 2. List of data that we retrieved from database 3. Table or other objects that we display data. What is the simple and fast way for add, edit and remove data from these 3 parts? 1. Add, edit, remove data to/ from database and retrieving data from database directly to objects like table. 2. Add, edit, remove data to/ from database Then to/ from list then to/ from objects like table 3. Is there any way to update all of these 3 parts with simple way? My mean how can create relationships between these 3 parts that when we change database, other parts(list and objects) update automatically. What is your idea??

10th Jun 2019, 5:23 PM
hamid
hamid - avatar
2 Antworten
+ 2
DB class, creating a db, and a table with the fields: id, name, age. Object class, for example: id, name, age. Creating an object of the Object class, and puts it in the table. Either change the data in the table or delete data from the table. Working object -> table -> object
10th Oct 2020, 4:29 AM
Evseev Anton
Evseev Anton - avatar
+ 1
We work with the entire table at once. Not separately, with each field in the table. And immediately with all fields. Through the object.
10th Oct 2020, 4:31 AM
Evseev Anton
Evseev Anton - avatar