Esempio n. 1
0
        public static void Main()
        {
            DataAccessObject daoCategories = new Categories();

            daoCategories.Run();

            DataAccessObject daoProducts = new Products();

            daoProducts.Run();
        }
Esempio n. 2
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            DataAccessObject daoCategories = new Categories();

            daoCategories.Run();

            DataAccessObject daoProducts = new Products();

            daoProducts.Run();

            // Wait for user
            Console.ReadKey();
        }
Esempio n. 3
0
        /// <resumen>

        /// Punto de entrada en la aplicación de consola.

        /// </resumen>

        static void Main(string[] args)
        {
            DataAccessObject daoCategories = new Categories();

            daoCategories.Run();

            DataAccessObject daoProducts = new Products();

            daoProducts.Run();

            // Espera al usuario

            Console.ReadKey();
        }
Esempio n. 4
0
        private static void Main(string[] args)
        {
            // canonical
            Console.WriteLine("concrete class A");
            var a = new ConcreteClassA();

            a.TemplateMethod();

            Console.WriteLine("concrete class B");
            var b = new ConcreteClassB();

            b.TemplateMethod();

            // live
            Console.WriteLine();
            var dao = new Products("connection string");

            dao.Run();
        }
Esempio n. 5
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            DataAccessObject daoCategories = new Categories();
            daoCategories.Run();

            DataAccessObject daoProducts = new Products();
            daoProducts.Run();

            // Wait for user
            Console.ReadKey();
        }