Exemplo n.º 1
0
        public static IProductManager GetProductManager()
        {
            string managerType = System.Configuration.ConfigurationManager.AppSettings["datamanager"];
            IProductManager productManager = null;
            switch (managerType)
            {
                case "sql":
                    productManager = new ProductSqlManager();
                    break;
                case "oracle":
                    productManager = new ProductOracleManager();
                    break;

            }
            return productManager;
        }
Exemplo n.º 2
0
        public static IProductManager GetProductManager()
        {
            string          managerType    = System.Configuration.ConfigurationManager.AppSettings["datamanager"];
            IProductManager productManager = null;

            switch (managerType)
            {
            case "sql":
                productManager = new ProductSqlManager();
                break;

            case "oracle":
                productManager = new ProductOracleManager();
                break;
            }
            return(productManager);
        }