Ejemplo n.º 1
0
 /// <summary>
 /// Removes search settings for columns that no longer exist from classes consisting of multiple components.
 /// </summary>
 private static void CleanCompositeClassesSearchSettings()
 {
     foreach (var classInfo in ObjectTypeManager.GetTypeInfos(ObjectTypeManager.AllObjectTypes, ti => ti.NestedInfoTypes != null)
              .Select(ti => DataClassInfoProvider.GetDataClassInfo(ti.ObjectClassName))
              .Where(c => c != null))
     {
         classInfo.ClassSearchSettings = SearchHelper.CleanSearchSettings(classInfo);
         classInfo.Update();
     }
 }