/// <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)); }
public WiqlQueryBuilder(IWiqlTranslator translator, params ExpressionVisitor[] visitors) { _translator = translator; _visitors = visitors; }
/// <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()) { }