コード例 #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);
            }
        }