/// <summary> /// Initializes a new instance of the <see cref="LogicalJoinModel"/>. /// </summary> /// <param name="logicalOperator">Logical operator.</param> /// <param name="first">First operand.</param> /// <param name="second">Second operand.</param> /// <exception cref="ArgumentNullException"><paramref name="first"/> or <paramref name="second"/> is null.</exception> public LogicalJoinModel(LogicalJoinOperator logicalOperator, [NotNull] WhereModel first, [NotNull] WhereModel second) : base(WhereType.LogicalJoin) { Guard.CheckNotNull(nameof(first), first); Guard.CheckNotNull(nameof(second), second); LogicalOperator = logicalOperator; First = first; Second = second; }
private XElement Where(LogicalJoinOperator logicalJoinOperator, [NotNull] XElement xFirst, [NotNull] XElement xSecond) { return(new XElement(logicalJoinOperator.ToString(), xFirst, xSecond)); }