How to read and save this like this? Automatically!

Thread Starter

Shafty

Joined Apr 25, 2023
327
whenever an ID is read, The object (for example: Customer) has to be returned. Whenever an Object is saved to a table the ID (Property) has to be saved. (Automatically)
Note:
All my Class files must be having an ID property for sure.
 

Thread Starter

Shafty

Joined Apr 25, 2023
327
Our Databases doesn't have the capacity to store objects directly right? So whenever the system tries to store an object into a table. I automatically want the sytem to store the Object's ID instead into the table. I also want the Inversion of the same task to be done. As I have the Object itself as the property in my class files. Hope you understand right now... Can be Done? It would be better if the above process is done automatically for all class files instead of coding it again and again for different class files...
 
Top