Hi
I'm trying do create a generic base class for all of my data objects.
One of
the main requirements for this class is to be able to handle all
common db actions without need for implementing them in inherited
classes. To accomplish this I need a way to map values of class
fields to corresponding stored procedure parameters. The only way i
have figured out to do this would be to create a name-value struct
array and hold class fields in it.
My question is: is there a better way to do this? Is there a way to
get a field value by matching its name to a string (in this case it
would be a parameter name)?
Thanks