Hi there,
We are using .NET 1.1 generated code and we cannot get prefetch to work. I looked into the query that was executed and the query does not join the 2 tables. It just selects from the "Products" table. Any help would be greatly appreciated.
Our 2 tables:
We have a "products" table and a "ProductCat2" table (product categories). So basically we would like to know which categories each product belongs to.
Our code:
ProductsCollection products = new ProductsCollection();
ProductsEntity product = new ProductsEntity();
IPrefetchPath prefetchpath = new PrefetchPath(product.LLBLGenProEntityTypeValue);
prefetchpath.Add(ProductsEntity.PrefetchPathProductCat2);
filters = new PredicateExpression();
filters.Add(ProductCat2Fields.Parent != "Parts");
products.GetMulti(filters, prefetchpath);
Result:
We basically get an error. In the query that was executed, the query does not select from the "ProductCat2" table. Did we do anything wrong? We are using Access, if that matters. Thank you in advance.