Features reading objects from different classes

To read many objects, you need (at least) to make settings LoadingCustomizationStruct:

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.

Переведено сервисом «Яндекс.Переводчик» http://translate.yandex.ru