List of adpters from component class

  • Thread starter Thread starter Fabio Negri Cicotti
  • Start date Start date
F

Fabio Negri Cicotti

How to get the list of all sqlAdpters created from a component class?
I wanna set the connection string of all at once. I was thinking to use a
foreach statement, but I can't find out how to do it.


Thanks in advance.

Fabio
 
Fabio,

You will have to expose some custom code that will do this. By default
the Component doesn't have any knowledge of the fact that it has an adapter
in it. It might have knowledge that another component is being hosted in
it, but that would still be specific logic that you have to code.

If you want this, you will have to expose the adapters yourself somehow.
If anything, I would have a property on the component that can be set to the
connection string, and then when it is set, have the component set the
connection string for all of the data adapters.

Hope this helps.
 
Back
Top