Hi all,
We do often write our own more complex SQL to fetch products/orders/users.
Until the newer versions (9.4) we have been able to parse a datareader to the constructor and thus building the object like so:
while (reader.Read())
{
result.Add(new Order(reader));
}
However in the new structure this is no longer possible as the methods to build the objects from a datareader are now internal.
Are there any reason these methods are internal? Do we have any alternatives?
Dynamicweb.Ecommerce.Orders.OrderService -- > internal Order ExtractOrder(IDataReader reader)
Internal class Dynamicweb.Ecommerce.Products.ProductRepository --> Product ExtractProduct(IDataReader dataReader);
Am I missing something? It would be nice to be able to build all the usual objects (User, Product, Order, Orderline, etc) from a datareader.
As it is now, we have a lot of customers that we can not upgrade.
Regards
Simon Nordahl