Question Connection class and table access

guichoprogamer

New member
Joined
May 22, 2009
Messages
2
Programming Experience
5-10
Hi all!

I have a connection class that deals with all db related stuff (i.e. connecting to and disconnecting from db, transactions, db info, etc.) Now, I want to have another class for managing data by using datasets, datatables and dataadapters. How can I make this new class inherit the connection class?

Any help will be greatly appreciated. Thanks!
 
why would you do that?

since when is a dataset a database connection?


that's like saying "I have a class that represents something organic like a tree, bird etc, and now I want to inherit man-made structures like Vehicle, Building from it"


ps; i'm virtually certian that youre approaching this problem the wrong/long way. See the DW2 links in my signature for how to build a data access layer for your program - Visual Studio will do most of it for you
 

Latest posts

Back
Top