Posted on 04/05/2011 15:13:37
Ok, but if i use a standard .net sqlconnection object. I will be in trouble later in the process.
To make a sort explanation on what i am trying to do: We now have 12 sites wrapply growing whit 1 every month. And need to make statistics on users and orders on all sites.
We have created a complete report system, and it works perfectly on 1 site, but we need to create a custom module which can extract data from all 12 sites (12 x dynamicweb solutions + new onces as they come).
So we need to be able to use the dynamicweb api to grap users, order,orderline, products and so on from the various sites
E.g.
Dynamicweb.Database = ConnecToDB("ConnectstringtoDb1");
Dynamicweb.eCommerce.Orders.Order o = new Dynamicweb.eCommerce.Orders.Order("orderid");
Write.something to report from db1
Dynamicweb.Database = ConnecToDB(ConnectstringtoDb2");
Dynamicweb.eCommerce.Orders.Order o = new Dynamicweb.eCommerce.Orders.Order("orderid");
Write.something to report from db2