Exemple #1
0
        private void InspectAndProcessGeneratedEntities()
        {
            foreach (var hieararchy in context.ModelInspectionResult.GeneratedHierarchies)
            {
                ModelInspector.Inspect(context, hieararchy);
            }
            foreach (var type in context.ModelInspectionResult.GeneratedTypes)
            {
                ModelInspector.Inspect(context, type);
            }
            context.ModelInspectionResult.GeneratedHierarchies.Clear();
            context.ModelInspectionResult.GeneratedTypes.Clear();

            if (context.ModelInspectionResult.HasActions)
            {
                // Applying fixup actions for generated entities.
                FixupActionProcessor.Run(context);
            }
        }