Exemplo n.º 1
0
        public new void ToString()
        {
            var joinClause      = new JoinClause("x", typeof(Cook), Expression.Constant(0), Expression.Constant(1), Expression.Constant(2));
            var groupJoinClause = new GroupJoinClause("y", typeof(IEnumerable <Cook>), joinClause);

            Assert.That(groupJoinClause.ToString(), Is.EqualTo("join Cook x in 0 on 1 equals 2 into IEnumerable`1 y"));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Overrides the <see cref="QueryModelVisitorBase.VisitGroupJoinClause(GroupJoinClause, QueryModel, int)"/>.
 /// </summary>
 /// <param name="groupJoinClause">The <see cref="GroupJoinClause"/>.</param>
 /// <param name="queryModel">The <see cref="QueryModel"/>.</param>
 /// <param name="index">The index.</param>
 public override void VisitGroupJoinClause(GroupJoinClause groupJoinClause, QueryModel queryModel, int index)
 {
     throw new NotSupportedException($"Group Join clause is not supported: {groupJoinClause.ToString()}.");
 }