Esempio n. 1
0
        public void ExportConfigurationClass()
        {
            var dt = LastOrCurrentTable();

            //not .cfg file
            if (cmd.InputPath() == null)
            {
                if (dt == null)
                {
                    return;
                }
            }

            var builder = new ConfClassBuilder(cmd, dt);

            builder.ExportCSharpData();
        }
Esempio n. 2
0
        public void ExportConfigurationFile()
        {
            var dt = LastOrCurrentTable();

            //not .cfg file
            if (cmd.InputPath() == null)
            {
                if (dt == null)
                {
                    return;
                }
            }

            var    builder = new ConfClassBuilder(cmd, dt);
            string _type   = cmd.GetValue("type") ?? "f";   //f:flat, h:hierarchial

            builder.ExportTie(_type == "f");
        }