Problem : Master Details Report With Nested Business Objects
Posted: Wed Apr 15, 2015 12:48 pm
I'm Trying to build A Master Detail Report with nested Business Objects
These are My Data classes from which I Created the BusinessObjects
public class Employee
{
public Department Department { get; set; }
public string EmployeeName { get; set; }
public List<Address> Addresses { get; set; }
public List<Phone> Phones { get; set; }
public string Email { get; set; }
public Employee(Department department, string employeeName, string email)
{
this.Department = department;
this.EmployeeName = employeeName;
this.email = email;
this.Phones = new List<Phone>();
this.Addresses = new List<Address>();
}
}
public class Company
{
public string CompanyName { get; set; }
}
public class Address
{
public string City { get; set; }
public string Street { get; set; }
}
public class Department
{
public Company Company { get; set; }
public string DepartmentName { get; set; }
}
public class Phone
{
public string Number { get; set; }
}
When my Employee Objects Has Multiple Phones and Multiple Addresses, Upon Rendering the Report, They Render Several Times! eg
2 X 2 Phones ) (2 X 3 Addresses)
Why Does this Happen?
Plz Help
These are My Data classes from which I Created the BusinessObjects
public class Employee
{
public Department Department { get; set; }
public string EmployeeName { get; set; }
public List<Address> Addresses { get; set; }
public List<Phone> Phones { get; set; }
public string Email { get; set; }
public Employee(Department department, string employeeName, string email)
{
this.Department = department;
this.EmployeeName = employeeName;
this.email = email;
this.Phones = new List<Phone>();
this.Addresses = new List<Address>();
}
}
public class Company
{
public string CompanyName { get; set; }
}
public class Address
{
public string City { get; set; }
public string Street { get; set; }
}
public class Department
{
public Company Company { get; set; }
public string DepartmentName { get; set; }
}
public class Phone
{
public string Number { get; set; }
}
When my Employee Objects Has Multiple Phones and Multiple Addresses, Upon Rendering the Report, They Render Several Times! eg

Why Does this Happen?
Plz Help