I'm creating a software for my friends library. For now I have a table in the database for books and movies, but lets say that the user would want to add cds aswell. Then I'd have to let the user create a table in the database for cds. The design so far, is to be having a class for each table in the database, with its fields, and methods for inserting and updating data in the database (c# and mysql). How would I go ahead and make a "general" class for all tables in the database, and not for each specific like I'm doing now.
I'm looking for a name on a pattern or something like that, not a complete tutorial in reply.
Thanks :)