Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add properties to class at runtime

Status
Not open for further replies.

Schweiger

Programmer
Apr 26, 2002
122
CH
Hi all

Does anybody know a way to add properties to a class at runtime? I would like to simplify DB-Access by encapsulating my DB in a single class that manages all DB-functions and options. Now the problem is, that I would like to analyse the DB-structure and to provide the tables and fields as they are in the DB as properties of my class. I thought by implementing it in a customcontrol it should be possible to use intellisense to get direct access to the structure of my DB through the customcontrol, but I've no opinion how to generate properties at runtime which would show up when I use the customcontrol in my projects.

Is there somebody who could give me a hint...
Andreas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top