Rather quick question.
I have conducted a search in Commerce server and now have a
CatalogItemsDataSet. I have tried to iterate through the collection
of CatalogItems via a foreach as so and cast each CatalogItem to a
Commerce Server product as so:
foreach(CatalogItemsDataSet.CatalogItem item in
ACatalogDS.CatalogItems)
{
// Code here to make sure the item is a product,,,,then,,,
Microsoft.CommerceServer.Catalog.Product
tempProduct = (Microsoft.CommerceServer.Catalog.Product)item;
This unfortunatly results in the following compile error : " Error 87
Cannot implicitly convert type
'Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem' to
'Microsoft.CommerceServer.Catalog.Product'"
I have searched around a bit but have not yet found a quick fix.
Thanks.


|