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; }
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; }