These are our entities, we want to display a report of customers and their newest customerOrder among other things.
Public Class CustomerEntity
Public Property ID As Integer
Public Property Name As String
Public Property Orders As List(Of CustomerOrderEntity)
End Class
Public Class CustomerOrderEntity
Public Property ID As Integer
Public Property FkCustomer As Integer
Public Property Sum As Decimal
End Class
So we create a Report entity that contains all data we want to be accessible in a couple of reports:
Public Class ReportCustomerEntity
Public Property ID As Integer
Public Property Name As String
Public Property NewestOrder As CustomerOrderEntity
Public Property SomeOtherField As String
Public Property ReportCreated As Date
Public Property ReportCreatedBy As String
End Class
Through Projection we understand that we can join different tables and fill a custom class. The problem here is the CustomerOrderEntity, can we call a llblgen fill method which takes a projectionrow and returns a customerorderentity?