Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WiqlQueryBuilder"/> class.
 /// </summary>
 /// <param name="translator">The translator used to visit the <see cref="Expression"/> tree.</param>
 /// <param name="visitors">The visitors used to visit the <see cref="Expression"/> during <see cref="BuildQuery"/>.</param>
 public WiqlQueryBuilder(IWiqlTranslator translator, params ExpressionVisitor[] visitors)
 {
     _translator = translator ?? throw new ArgumentNullException(nameof(translator));
     _visitors   = visitors ?? throw new ArgumentNullException(nameof(visitors));
 }
Esempio n. 2
0
 public WiqlQueryBuilder(IWiqlTranslator translator, params ExpressionVisitor[] visitors)
 {
     _translator = translator;
     _visitors   = visitors;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WiqlQueryBuilder"/> class.
 /// </summary>
 /// <param name="translator">The translator used to visit the <see cref="Expression"/> tree.</param>
 public WiqlQueryBuilder(IWiqlTranslator translator)
     : this(translator, new PartialEvaluator(), new IdentityComboStringVisitor(), new QueryRewriter())
 {
 }