示例#1
0
        public static DataFreshConsole Execute(string command, string username, string password, string server, string database, params string[] options)
        {
            string[] args = new string[]
                {
                    "-c", command,
                    "-u", username,
                    "-p", password,
                    "-s", server,
                    "-d", database,
                };

            if (options != null && options.Length > 1)
            {
                string argsString = string.Join("|", args);
                string optionsString = string.Join("|", options);
                args = string.Format(argsString + "|" + optionsString).Split('|');
            }

            DataFreshConsole console = new DataFreshConsole();
            console.Start(args);
            return console;
        }
示例#2
0
        public static DataFreshConsole Execute(string command, string username, string password, string server, string database, params string[] options)
        {
            string[] args = new string[]
            {
                "-c", command,
                "-u", username,
                "-p", password,
                "-s", server,
                "-d", database,
            };

            if (options != null && options.Length > 1)
            {
                string argsString    = string.Join("|", args);
                string optionsString = string.Join("|", options);
                args = string.Format(argsString + "|" + optionsString).Split('|');
            }

            DataFreshConsole console = new DataFreshConsole();

            console.Start(args);
            return(console);
        }
 public void NoArgs()
 {
     string[] args = new string[] {};
     DataFreshConsole console = new DataFreshConsole();
     console.Start(args);
 }
示例#4
0
 public static void Main(string[] args)
 {
     DataFreshConsole console = new DataFreshConsole();
     console.Start(args);
 }
 public void BlankArgs()
 {
     string[] args = new string[] {"", ""};
     DataFreshConsole console = new DataFreshConsole();
     console.Start(args);
 }