Example #1
0
        static void Main(string[] args)
        {
            ApplicationClass mssql = new ApplicationClass(new MSSQLFactory());

            mssql.Connect();
            mssql.Execute();
            mssql.Disconnect();

            Console.WriteLine("-----");

            ApplicationClass oracle = new ApplicationClass(new OracleFactory());

            oracle.Connect();
            oracle.Execute();
            oracle.Disconnect();

            Console.Read();
        }