ASP.NET 2.0 ObjectDataSource question

K

Kristof Van Praet

Hello all,

The ObjectDataSource control uses reflection to create instances of business
components and call the appropriate methods to select, update,... data.

How can I use the ObjectDataSource control if I don't want to allow it to
instantiate the businesscomponents directly but use a ComponentFactory which
takes care of creating components. How can I use the ObjectDataSource
control with this factory. The code to create the component and obtain a
collection of business objects looks somewhat like this.

ICustomerComponent component = ComponentFactory().CreateCustomerCompoment();
ArrayList customers = customer.ReadCustomers();

Is this possible with the objectdatasource?

Kind Regards,
Kristof
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top