Пример #1
0
        private void ExecuteTemplateAngularGridComponent(TableInfo tableInfo, Context configContext)
        {
            if (tableInfo.CodeCustomImplemented)
            {
                return;
            }

            if (!tableInfo.MakeFront)
            {
                return;
            }

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

            if (File.Exists(pathOutput))
            {
                return;
            }

            var pathTemplateController = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, this._defineTemplateFolder.Define(tableInfo), DefineTemplateNameAngular.AngularGridComponent(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); }
        }