When I forget to pre-fetch an entity using the Adapter classes, I would like to get an exception when I try to access that entity though a related object.
For example: I pre-fetched Customers, but not Orders. The code:
Console.Write(myCustomer.Orders.Count);
should ideally throw an exception indication that Orders was never fetched,as opposed to 'gracefully' displaying '0'.
Would you consider adding a property-property to LLBLGen that would generate code to do that?
Thanks
Ries - Amsterdam Software