static void Main(string[] args)
        {
            //new [NomeDaFabrica] -> poderia vir de um arquivo de configuraĆ§Ć£o
            DBFactory db  = new OracleFactory();
            var       con = db.createConnection();

            con.Open();
            var cmd = db.createCommand();

            cmd.Execute();
            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            DBFactory db = new OracleFactory();

            var con = db.createConnection();

            con.Open();

            var command = db.createCommand();

            command.Execute();

            Console.ReadKey();
        }