예제 #1
0
        protected void DoConstruction(string connectionString)
        {
            _Db = new WebDbDataContext(connectionString);

            if (!_Db.DatabaseExists())
            {
                throw new RepositoryDoesNotExistException("WebshipAccountRepository.DatabaseExists returns false with the following connection string: " + _Db.Connection);
            }
        }
예제 #2
0
        protected void DoConstruction(string connectionString)
        {
            _Db = new WebDbDataContext(connectionString);

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