예제 #1
0
        static void Main(string[] args)
        {
            Options options = new Options();

            options.UseTransactions = true;
            options.ServerName      = "localhost";
            options.DatabaseName    = "simple_script_runner_sample";
            options.UserName        = "******";
            options.Password        = "******";
            options.Path            = "sample";

            TopProgram.simpleScriptRunnerProgramMain(options);
        }
예제 #2
0
 public static int Main(string[] args)
 {
     try
     {
         return(TopProgram.main(ConfigurationManager.AppSettings, args));
     }
     catch (Exception error)
     {
         Console.Error.WriteLine("Error: " + error.Message);
         Console.Error.WriteLine(error.StackTrace);
         return(1);
     }
 }