예제 #1
0
        private void ExecuteTemplateAngularGridGeneratedComponent(TableInfo tableInfo, Context configContext)
        {
            if (tableInfo.CodeCustomImplemented)
            {
                return;
            }

            if (!tableInfo.MakeFront)
            {
                return;
            }

            var pathOutput = PathOutputAngular.PathOutputAngularGridGeneratedComponent(tableInfo, configContext);

            var pathTemplateController = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, this._defineTemplateFolder.Define(tableInfo), DefineTemplateNameAngular.AngularGridGeneratedComponent(tableInfo));
            var textTemplateController = Read.AllText(tableInfo, pathTemplateController, this._defineTemplateFolder);
            var classBuilderController = GenericTagsTransformer(tableInfo, configContext, textTemplateController);

            using (var stream = new HelperStream(pathOutput).GetInstance()) { stream.Write(classBuilderController); }
        }