Fishy wrote:
I did find this code in the manual.
' VB.NET, .NET 2.0
Dim customer As New CustomerEntity("CHOPS")
Dim adapter As New DataAccessAdapter()
Dim orders As EntityCollection(Of OrderEntity)= customer.Orders
adapter.FetchEntityCollection(orders, customer.GetRelationInfoOrders())
Which, I think, is what I want to do.
Thanks.
I don't think this is possible in your case, since the related entities you want to fetch do not comprise a collection, but rather a single entity. Each EmployeeDepartmentEntity will have one and only one EmployeeEntity related to it, which (as far as I know) can't be fetched as a collection in the above manner.
If you reverse the above example, and think in terms of fetching a customer collection via the orders collection (which would not be possible), it would be a closer analogy to your own situation.
Could you post a snippet of code that you can't get working? It might make it easier to directly address the problem (plus it's possible I'm simply not understanding your questions).
Phil