Ejemplo n.º 1
0
        public DataRepository(string datasource, DataSourceType dst, string uid, string password)
        {
            //create correct type of data order
            IDataOrderFactory dataorderfactory = new DataOrderFactory(datasource, dst, uid, password);

            _dataOrder = dataorderfactory.getDataOrder();
            IDbProviderFactory provider = new DbProviderFactory(_dataOrder);

            _providerFactory = provider;
        }
Ejemplo n.º 2
0
        public DataRepository(DataSourceType dst)
        {
            //create correct type of data order
            IDataOrderFactory dataorderfactory = new DataOrderFactory(dst);

            _dataOrder = dataorderfactory.getDataOrder();
            IDbProviderFactory provider = new DbProviderFactory(_dataOrder);

            _providerFactory = provider;
        }