Code: Select all
var reportData = new ArrayList
{
new ArrayList
{
new BarDto {BarProperty = "Bar Dto #1"},
new BarDto {BarProperty = "Bar Dto #2"},
},
new ArrayList
{
new FooDto {FooProperty = "Foo Dto #1"},
new FooDto {FooProperty = "Foo Dto #2"},
}
};
Code: Select all
BarProperty FooProperty
-----------------------
Bar Dto #1 NULL
Bar Dto #2 NULL
NULL Foo Dto #1
NULL Foo Dto #2
(I think I haven't completely wrapped my mind yet around the way the bussiness object to data source mapping works.)