I have a dataform that is bound to a list of objects. The fields on the dataform are generated for the primitive properties (name, description, etc). However, this object also includes a complex object that has its own properties. How do I tell the dataform to autogenerate the primitive properties for this as well?
public class Order
{
public int OrderId {get; set;}
public string Name {get; set;}
public OrderDetail OrderDetails {get; set;}
}
public class OrderDetail
{
public int OrderDetailId {get; set;}
public int OrderId {get; set;}
public double Cost {get; set;}
}