Fill related Objects

Jan 27, 2011 at 7:01 AM

I have an object called Employee which has a property of Supervisor and Subordinates.

What do I need to do, that during a fetch, this related objects are filled?

Thankx, Cheers Harry

Jan 27, 2011 at 9:38 AM

You need to setup your EF model properly. Select template for Employee object, and other objects (Employee=EditableRoot, Supervisor = EditableChild, Subordinates = EditableChildList). Then find properties Employee.Supervisor and Employee.Subordinates and select public for CSLA getter and setter.