If I understand, you have not any relation mapped between these two entities. If so, you need to add a custom one. In this code I use DynamicLists:
// setup the fields to fetch
ResultsetFields fields = new ResultsetFields(2);
fields.DefineField(OrderFields.CustId, 0);
fields.DefineField(LineItemFields.ProductId, 1);
// build your custom relation
IRelationCollection relations = new RelationCollection();
relations.Add(new EntityRelation(
OrderFields.OrderId, LineItemFields.OrderId, RelationType.OneToMany)
// fetch
DataTable dynamicList = new DataTable();
TypedListDAO dao = new TypedListDAO();
dao.GetMultiAsDataTable(fields, dynamicList, 0, null, null, relations, true, null, null, 0, 0);
skhan wrote:
I am an active customer...if that would help speed things up
We offer the same good and fast support even if you are not a customer