Exemple #1
0
        private void ActionCsCode(string path)
        {
            var file  = Entity.TryGetExtendConfig("File_Model_Action", $"Page\\{Entity.Name}\\{Entity.Name}PageAction");
            var coder = new ApiActionCoder
            {
                Entity  = Entity,
                Project = Project
            };

            IOHelper.CheckPaths(path, Path.GetDirectoryName(file));
            WriteFile(SetPath(path, file, ".cs"), coder.Code());
            WriteFile(SetPath(path, file, ".Designer.cs"), coder.BaseCode());
        }
        private void ActionCsCode(string path)
        {
            var file  = ConfigPath(Entity, "File_Web_Action_cs", path, $"{Entity.Parent.Name}\\{Entity.Name}", "PageAction");
            var coder = new ApiActionCoder
            {
                Entity  = Entity,
                Project = Project
            };

            GlobalConfig.CheckPaths(Path.GetDirectoryName(file));
            WriteFile(file + ".cs", coder.Code());
            WriteFile(file + ".Designer.cs", coder.BaseCode());
        }