[plug] Database and C++

J Michael Gilks mike at gilks1.com
Sun Jul 6 11:32:24 WST 2003


Have just been going back and reviewing some C++ stuff when I had a thought.
Classes to describe data seem to map very directly to database tables.
ie the classic employee table would contain
record id
employee id
employee name
employee address
employee department
employee position

A class employee would contain the same, except the record id, and a lot of 
functions to manipulate the data.

My question is, would it be general practice to include functions to 
manipulate employee data in a database? or should there be a connection class 
which contains all the manipulation functions.

Just a random thought which piqued my curiosity.
Would like to hear any comments.

Love
Mike.



More information about the plug mailing list