Пример #1
0
        protected void DoConstruction(string connectionString)
        {
            // TODO: We want to make sure that we get created with TEST parameters for now
            _Db = new OpsDbDataContext(connectionString);

            if (!_Db.DatabaseExists())
            {
                throw new RepositoryDoesNotExistException("LsoCustomerRepository.DatabaseExists returns false with the following connection string: " + _Db.Connection);
            }
        }
        protected void DoConstruction(string connectionString)
        {
            _Db = new OpsDbDataContext(connectionString);

            if (!_Db.DatabaseExists())
            {
                // TODO, throw in .TOstring because this doesn't actually work right as it is
                throw new RepositoryDoesNotExistException("LsoPackageRepository.DatabaseExists returns false with the following connection string: " + _Db.Connection);
            }
        }