Code: Select all
public class Order
{
public string OrderNumber {get;set;}
public IEnumerable<Product> Products {get;set;}
}
public class Product
{
public string Name {get;set;}
}
I even tried adding the Product as its own data source and then defining a relation between Order and Products, but the "OK" button is always greyed out no matter what I specify in this dialog (I'm not sure if the relation would do what I want anyway).
I should also note that defining a new data source just for the collection that I have to manually bind via RegBusinessObject is not acceptable. I'm already calling RegBusinessObject on the top-level object which contains the child collection, I should just be able to extract the needed data from that.
Honestly, such a simple thing shouldn't be this complicated, and the video certainly makes it seem easy, so what am I missing?