S
Sergio Montero
I have a MustInherits Base class that implements a custom IDataLayer
interfase. IDataLayer expose CRUD methods. Base class constructor requires
two parameters:
ConnectionString
TableName
Another assembly, sharing the root namespace, contains a set of Custom
attributes used to validate properties values, just like the Validation
Application Block.
Base class is compiled into an Assembly.
I'd like to be able to give Base class the ability to add itself a set of
properties that match a datatable structure once the constructor is executed
and also have the posibility to add a customattribute to any of these
properties.
The set of properties could be as diferent as the Tablename target changes.
I'd like programmers that consume Base class assembly could write less code
and need less database structure knowledge.
I've been Googling articles about IExtender, PropertyDescriptor and other
topics without have a clear idea to where to point all the effort.
Is, the scenario described, posible to achieve?
Could anybody point me to the rigth direction?
I'll appreciate any help.
T.I.A.
Sergio Montero
MX
interfase. IDataLayer expose CRUD methods. Base class constructor requires
two parameters:
ConnectionString
TableName
Another assembly, sharing the root namespace, contains a set of Custom
attributes used to validate properties values, just like the Validation
Application Block.
Base class is compiled into an Assembly.
I'd like to be able to give Base class the ability to add itself a set of
properties that match a datatable structure once the constructor is executed
and also have the posibility to add a customattribute to any of these
properties.
The set of properties could be as diferent as the Tablename target changes.
I'd like programmers that consume Base class assembly could write less code
and need less database structure knowledge.
I've been Googling articles about IExtender, PropertyDescriptor and other
topics without have a clear idea to where to point all the effort.
Is, the scenario described, posible to achieve?
Could anybody point me to the rigth direction?
I'll appreciate any help.
T.I.A.
Sergio Montero
MX