I am trying to return lists of objects that have links to other objects and vice versa.
I want lazy loading to get "first-level children", I mean, if I have a "Man" object with the "Place" property, I want the place data to load, but not every object in "Place" should be loaded ... because it will be ahead of the circular reference ...
I read that I can do this using [DataContract (IsReference = true)] for each object.
I set every object in the model (automatically generated by EF) with this decoration, but it still fails to try to send it back to the caller of the service.
Did I miss something? Thanks in advance.
source
share