Exemplo n.º 1
0
        private string Translate(Expression expression)
        {
            var translator = new WiqlQueryTranslator();
            WiqlQueryTranslationResult result = translator.Translate(expression, AsOf);

            return(result.ToString());
        }
Exemplo n.º 2
0
        private object InternalExecute(Expression expression, Func <WIT.WorkItemCollection, WIT.WorkItem> selector)
        {
            var translator = new WiqlQueryTranslator();
            WiqlQueryTranslationResult result = translator.Translate(expression, AsOf);

            if (selector == null)
            {
                return(Store.Query(result.Wiql, result.Context));
            }
            else
            {
                return(selector(Store.Query(result.Wiql, result.Context)));
            }
        }