I have two CodeFluentEntities collections that are related in a typical Master/Detail relationship: Invoices and Invoice details.
While I can load the invoice collection in order by the invoice's number, I can't quite figure out how to get the related collection of invoice details to load in order by the invoice's line numbers.
This works in retrieving the invoice's in the desired sequence:
Dim _page As New CodeFluent.Runtime.PageOptions("[Invoice].[InvoiceNumber]", System.ComponentModel.ListSortDirection.Ascending)
Dim _orders as Accounting.AR.OrderCollection.PageLoadAll(0, -1, _page)
OrderCollectionBindingSource.DataSource = _orders
The InvoiceDetail
collection is loaded in a random order. What I would like to do is have the related collection sorted by [InvoiceDetail].[LineNumber]