/// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 14 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\BundleConfigFactory.tt"

            //Accessing the model data passed in by GenerateSource method.
            CodeFactory.DotNet.CSharp.CsModelStore csModelStore = CsModels;



            #line default
            #line hidden
            this.Write(@"[
  {
    ""outputFileName"": ""wwwroot/css/site.min.css"",
    ""inputFiles"": [
      ""wwwroot/css/site.css""
    ]
  },
  {
    ""outputFileName"": ""wwwroot/js/site.min.js"",
    ""inputFiles"": [
      ""wwwroot/js/site.js""
    ],
    ""minify"": {
      ""enabled"": true,
      ""renameLocals"": true
    },
    ""sourceMap"": false
  }
]");
            return(this.GenerationEnvironment.ToString());
        }
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 14 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\ModuleFactory.tt"

            //Accessing the model data passed in by GenerateSource method.
            CodeFactory.DotNet.CSharp.CsModelStore csModelStore = CsModels;
            if (csModelStore == null)
            {
                return(null);
            }
            if (csModelStore.Model == null)
            {
                return(null);
            }
            if (csModelStore.Model.ModelType != CsModelType.Class)
            {
                return(null);
            }

            ICsClass classData = csModelStore.Model as CsClass;
            if (classData == null)
            {
                return(null);
            }
            if (!classData.IsLoaded)
            {
                return(null);
            }
            var fullClassname = $"{classData.Namespace}.{classData.Name}";

            var repositories = csModelStore.Models("repositories");
            var repoMods     = repositories.Cast <ICsSource>();

            Dictionary <string, string> namespaces = ModelData as Dictionary <string, string>;


            #line default
            #line hidden
            this.Write("using Microsoft.AspNetCore.Builder;\r\nusing Microsoft.AspNetCore.Http;\r\nusing Syst" +
                       "em.Threading.Tasks;\r\n\r\nnamespace ");

            #line 35 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\ModuleFactory.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(namespaces["Namespace"]));

            #line default
            #line hidden
            this.Write("\r\n{\r\n    public class ");

            #line 37 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\ModuleFactory.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(classData.Name));

            #line default
            #line hidden
            this.Write(@"MiddlewearConversion
    {
        private readonly RequestDelegate _next;

        public MyMiddleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task Invoke(HttpContext context)
        {
            // Do something with context near the beginning of request processing.

            await _next.Invoke(context);

            // Clean up.
        }
    }

    public static class ");

            #line 56 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\ModuleFactory.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(classData.Name));

            #line default
            #line hidden
            this.Write("MiddlewearConversionExtensions\r\n    {\r\n        public static IApplicationBuilder " +
                       "UseMyMiddleware(this IApplicationBuilder builder)\r\n        {\r\n            return" +
                       " builder.UseMiddleware<MyMiddleware>();\r\n        }\r\n    }\r\n}\r\n");
            return(this.GenerationEnvironment.ToString());
        }
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 14 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"

            //Accessing the model data passed in by GenerateSource method.
            CodeFactory.DotNet.CSharp.CsModelStore csModelStore = CsModels;
            if (csModelStore == null)
            {
                return(null);
            }
            if (csModelStore.Model == null)
            {
                return(null);
            }
            if (csModelStore.Model.ModelType != CsModelType.Class)
            {
                return(null);
            }

            ICsClass classData = csModelStore.Model as CsClass;
            if (classData == null)
            {
                return(null);
            }
            if (!classData.IsLoaded)
            {
                return(null);
            }
            var fullClassname = $"{classData.Namespace}.{classData.Name}";

            var repositories = csModelStore.Models("repositories");
            var repoMods     = repositories.Cast <ICsSource>();

            Dictionary <string, string> namespaces = ModelData as Dictionary <string, string>;



            #line default
            #line hidden
            this.Write("using System;\r\nusing System.Collections.Generic;\r\nusing System.Text;\r\nusing Syste" +
                       "m.Threading.Tasks;\r\nusing Microsoft.Extensions.Logging;\r\nusing Microsoft.AspNetC" +
                       "ore.Components;\r\n\r\n\r\nnamespace ");

            #line 40 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(namespaces["Namespace"]));

            #line default
            #line hidden
            this.Write("\r\n{\r\n    \r\n    public class ");

            #line 43 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(classData.Name));

            #line default
            #line hidden
            this.Write("Base : ComponentBase\r\n    {\r\n        #region Properties\r\n");

            #line 46 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            foreach (var classDataProperty in classData.Properties)

            #line default
            #line hidden

            #line 47 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            {
            #line default
            #line hidden

            #line 48 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                if (classDataProperty.HasDocumentation)

            #line default
            #line hidden

            #line 49 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                {
            #line default
            #line hidden

            #line 50 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    var documentLines = classDataProperty.Documentation.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);

            #line default
            #line hidden

            #line 51 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    foreach (string docData in documentLines)

            #line default
            #line hidden

            #line 52 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    {
            #line default
            #line hidden

            #line 53 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        string formattedDocLine = FormatDocumentationLine(docData);

            #line default
            #line hidden

            #line 54 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        if (formattedDocLine == null)
                        {
                            continue;
                        }

            #line default
            #line hidden
                        this.Write("        ");

            #line 55 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        this.Write(this.ToStringHelper.ToStringWithCulture(formattedDocLine));

            #line default
            #line hidden
                        this.Write("\r\n");

            #line 56 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    }
                }
                if (classDataProperty.HasAttributes)
                {
                    foreach (ICsAttribute attributeData in classDataProperty.Attributes)
                    {
            #line default
            #line hidden
                        this.Write("        ");

            #line 62 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        this.Write(this.ToStringHelper.ToStringWithCulture(attributeData.FormatCSharpAttributeSignatureSyntax()));

            #line default
            #line hidden
                        this.Write("\r\n");

            #line 63 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    }
                }

                string formattedProperty = classDataProperty.FormatCSharpDeclarationSyntax(true, false, false);
                if (string.IsNullOrEmpty(formattedProperty))
                {
                    return(null);
                }


            #line default
            #line hidden
                this.Write("        ");

            #line 69 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture($"{formattedProperty}{Environment.NewLine}"));

            #line default
            #line hidden
                this.Write("\r\n");

            #line 70 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            }

            #line default
            #line hidden
            this.Write("        #endregion\r\n\r\n        #region Methods\r\n");

            #line 74 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            foreach (var classDataMethod in classData.Methods)

            #line default
            #line hidden

            #line 75 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            {
            #line default
            #line hidden

            #line 76 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                if (classDataMethod.HasDocumentation)

            #line default
            #line hidden

            #line 77 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                {
            #line default
            #line hidden

            #line 78 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    var documentLines = classDataMethod.Documentation.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);

            #line default
            #line hidden

            #line 79 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    foreach (string docData in documentLines)

            #line default
            #line hidden

            #line 80 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    {
            #line default
            #line hidden

            #line 81 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        string formattedDocLine = FormatDocumentationLine(docData);

            #line default
            #line hidden

            #line 82 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        if (formattedDocLine == null)
                        {
                            continue;
                        }

            #line default
            #line hidden
                        this.Write("        ");

            #line 83 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        this.Write(this.ToStringHelper.ToStringWithCulture(formattedDocLine));

            #line default
            #line hidden
                        this.Write("\r\n");

            #line 84 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    }

            #line default
            #line hidden

            #line 85 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                }

            #line default
            #line hidden

            #line 86 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                if (classDataMethod.HasAttributes)

            #line default
            #line hidden

            #line 87 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                {
            #line default
            #line hidden

            #line 88 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    foreach (ICsAttribute attributeData in classDataMethod.Attributes)

            #line default
            #line hidden

            #line 89 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    {
            #line default
            #line hidden
                        this.Write("        ");

            #line 90 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                        this.Write(this.ToStringHelper.ToStringWithCulture(attributeData.FormatCSharpAttributeSignatureSyntax()));

            #line default
            #line hidden
                        this.Write("\r\n");

            #line 91 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                    }

            #line default
            #line hidden

            #line 92 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                }

            #line default
            #line hidden

            #line 93 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"


            #line default
            #line hidden

            #line 94 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                string formattedMethod = FormatMethodSignature(classDataMethod);

            #line default
            #line hidden

            #line 95 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                if (string.IsNullOrEmpty(formattedMethod))
                {
                    return(null);
                }

            #line default
            #line hidden
                this.Write("        ");

            #line 96 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(classDataMethod.GetBodySyntaxAsync()));

            #line default
            #line hidden
                this.Write("\r\n    }\r\n");

            #line 98 "C:\github\CodeFactory\src\CommandProjects\WebFormsToBlazorServer\WebFormsToBlazorServerCommands\Templates\LogicCodeFactory.tt"
            }

            #line default
            #line hidden
            this.Write("\r\n");
            return(this.GenerationEnvironment.ToString());
        }