Features reading objects from different classes
To read many objects, you need (at least) to make settings LoadingCustomizationStruct:
- specify data classes, which reads (LoadingTypes);
- specify common view (View).
Thus, if there is a situation:
and you must read all instances of the CDDD and the CDDA in the presentation of the Main» «for life, then LoadingCustomizationStruct
parameterized in the following way:
lcs = new LoadingCustomizationStruct(null);
lcs.View=Information.GetView("The main thing", typeof(Ресурс));
lcs.LoadingTypes=new Type[]{typeof(CDDD), typeof(CDDA)};
Then you must call LoadObjects(lcs).
An example is available at GitHub.
To solve the opposite problem, namely, for editing objects-successors in a wider range of properties than the ancestors, could be used adaptive view.