I have 4 assoiciated classes and need to do a query.
The classes are:
public class Project{
IList<Process> Processes{get;set;}
}
public class Process{
IList<Association> Associations{get;set;}
}
public class Association{
public IList<MonthCapacity> MonthCapacities{get;set;}
public FieldOfActivity FieldOfActivity{get;set;}
}
public class MonthCapacity{
public int Hours{get;set;}
public DateTime MonthDate{get;set;}
}
public class FieldOfActivity{
}
The query should result in a DTO:
public class ChartDto{
public Project Project{get;set;}
public FieldOfActivity FieldOfActivity{get;set;}
public int Hours{get;set;}
}
I tried it with QueryOver but didn’t get it to work. Could someone help me out?
Thanks in advance Tobi
can you test this:
Edit: