Im making a report in the VS 2010 report designer, the main source of the data is the Lines entity. But I need an extra field from another entity Parts. So I added a partial class of Line with the extra property like so :
public partial class Line
{
public string ShelfLocation
{
get
{
using (RSContext rs = new RSContext())
{
return rs.Parts.First(x => x.Code == this.Part).ShelfLocation;
}
}
}
Problem is I still cant see this extra field from the report designer :

How can I acheive this without creating another view?
Many thanks in advance.
EDIT 1 (both in same namespace) :

I dont know if there is a better solution but for the time being I added this manually to the report and it worked :