I have a web service which I consume in a C# application. To be able to view child properties inside the class I defined a partial class like this:
public class Client{
public int Id {get; set;}
public int Name {get; set;}
...
]
public partial class ClientDiagnose{ /* this class is auto-generated from service */
public Client client{get; set;}
...
}
public partial class ClientDiagnose{
public int ClientId {
get { return client.Id; }
}
public string ClientName {
get { return client.Name; }
}
}
When I added a business object (ClientDiagnose) as a datasource to rdlc report, it shows only the properties generated from service, and didn't show ClientId or ClientName.
What am I doing wrong? What is missing?