I am having some difficulty figuring out how to get a Report to bind to my business objects.
I am using Interfaces in the following way:
In my implementation I end up with something like to following:
So, when I am create the object data source, I am binding to a collection of "IBottomInterface", however, only the properties of that
(IBottomInterface) seem to be visible and usable to the report? Anyway, I
was thinking that all of the properties of both interfaces
would be there, as IBottomInterface is a ITopInterface..? Is there
a way to force the object data source to see the entire object?
I am using Interfaces in the following way:
public interface ITopInterface
{
string A { get; }
}
public interface IBottomInterface: ITopInterface
{
string B { get; }
bool C { get; }
}
In my implementation I end up with something like to following:
public class BaseClass : ITopInterface
{
public string A { get { return "test"; } }
}
public class newobject : BaseClass, IBottomInterface
{
public string B { get { return "test"; } }
public bool C { get { return true; } }
}
So, when I am create the object data source, I am binding to a collection of "IBottomInterface", however, only the properties of that
(IBottomInterface) seem to be visible and usable to the report? Anyway, I
was thinking that all of the properties of both interfaces
would be there, as IBottomInterface is a ITopInterface..? Is there
a way to force the object data source to see the entire object?