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
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