Exemple #1
0
        static void Main(string[] args)
        {
            // Sample Code to get a connection string from the
            // App.Config file
            // Use this so that you don't need to copy your connection string all over your code!
            string connectionString = ConfigurationManager.ConnectionStrings["CapstoneDatabase"].ConnectionString;
            CLI    cli = new CLI();

            cli.RunCLI();
        }
        static void Main(string[] args)
        {
            // Forces DateTime to create objects in yyyy/MM/dd format (our SQL db uses this format)
            CultureInfo ci = new CultureInfo(CultureInfo.CurrentCulture.Name);

            ci.DateTimeFormat.ShortDatePattern = "yyyy'/'MM'/'dd";

            Thread.CurrentThread.CurrentCulture   = ci;
            Thread.CurrentThread.CurrentUICulture = ci;

            CLI cli = new CLI();

            cli.RunCLI();
        }