/// <summary> /// Remove the unnecessary classes that we generated for entities. /// </summary> public void CustomizeCodeDom(CodeCompileUnit codeUnit, IServiceProvider services) { Trace.TraceInformation("Entering ICustomizeCodeDomService.CustomizeCodeDom"); Trace.TraceInformation("Number of Namespaces generated: {0}", codeUnit.Namespaces.Count); codeUnit.RemoveAssemblyAttributes(); RemoveNonOptionSetDefinitions(codeUnit); AddMetadataAttributes(codeUnit, services); SortOptionSets(codeUnit); Trace.TraceInformation("Exiting ICustomizeCodeDomService.CustomizeCodeDom"); }
/// <summary> /// Remove the unnecessary classes that we generated for entities. /// </summary> public void CustomizeCodeDom(CodeCompileUnit codeUnit, IServiceProvider services) { Trace.TraceInformation("Entering ICustomizeCodeDomService.CustomizeCodeDom"); Trace.TraceInformation("Number of Namespaces generated: {0}", codeUnit.Namespaces.Count); codeUnit.RemoveAssemblyAttributes(); ProcessActions(codeUnit); if (GenerateActionAttributeNameConsts) { new AttributeConstGenerator().CustomizeCodeDom(codeUnit, services); } Trace.TraceInformation("Exiting ICustomizeCodeDomService.CustomizeCodeDom"); }