Exemplo n.º 1
0
        public ArticleInfo[] MatchArticles(int[] contentIds, T condition, MatchMode mode)
        {
            var conditionTree = _mapper.Map(condition);

            using (new QPConnectionScope(_connectionString))
            {
                return(ArticleMatchRepository.MatchArticles(contentIds, conditionTree, mode));
            }
        }
Exemplo n.º 2
0
        public ArticleInfo[] MatchArticles(int[] contentIds, T condition, MatchMode mode)
        {
            var conditionTree = _mapper.Map(condition);

            QPContext.CurrentDbConnectionInfo = new QpConnectionInfo(_connectionString, _dbType);
            using (new QPConnectionScope())
            {
                return(ArticleMatchRepository.MatchArticles(contentIds, conditionTree, mode));
            }
        }