I am learning WCF data services (cannot upgrade to RIA) and one of the major benefits I thougth I would get was that it would maintain relations for me and do lazy loads...
Example:
A bidirectional relation:
Order.Items --> OrderItems
OrderItem.Order --> Order
Say I have already a reference to an order. Then I populate its items by calling BeginLoadProperty(order, "OrderItems")
. After that I would expect that the following would be true:
order.OrderItems[0].Order == order;
Unfortunatelly order.OrderItems[0].Order
is null...
Is this scenario supported? Will it WCF data services handle for you? Or are you left with your custom implementation?
I use Entity Framework as the underlying data service.
Thanks!