Hi!
I tried to load a complex object with DeepLoad, but only one level got loaded even though I turned on the "deep" flag.
Here is a simplified version of my schema
ClientCoor (ClientCoorID, ZipCodeID, ...)
ZipCode (ZipCodeID, CityID, RegionID, CountryID, ...)
City (CityID, CityName)
And here is my code:
ClientCoor clientCoor;
ClientCoorService clientCoorService = new ClientCoorService();
clientCoor = clientCoorService.GetByClientCoorID(1);
clientCoorService.DeepLoad(clientCoor, true);
After running this code, I would have expected to be able to access the following object and sub-objects:
- clientCoor
- clientCoor.ZipCodeIDSource
- clientCoor.ZipCodeIDSource.CityIDSource
- clientCoor.ZipCodeIDSource.RegionIDSource
- clientCoor.ZipCodeIDSource.CountryIDSource
However, I can only access the two first ones. The three latter ones are null. Is there anything wrong with my code?
Cheers!
JF