I didn't know if this should be posted here or on Programmers - Sorry.
I want to be able to have a method that I can call like (psuedo code):
RegisterField("FIELD", Variable);
RegisterField then adds a pointer to Variable
to a list so that I can loop through it and update database column "FIELD"
. Whenever Variable
changes then the value in the list should represent that (hence the pointer) I am not really sure which direction to start from with this so am looking for some advice.
If the idea is wrong then could somepoint point me in the correct direction?
p.s The idea is I can have a base class that I includes RegisterField
so all classes derived from it can support auto updating database changes.