Class Cs.JoinIntoClause

java.lang.Object
org.openrewrite.csharp.tree.Cs.JoinIntoClause
All Implemented Interfaces:
Cs, Cs.QueryClause, org.openrewrite.java.tree.J, org.openrewrite.Tree
Enclosing interface:
Cs

public static final class Cs.JoinIntoClause extends Object implements Cs, Cs.QueryClause
Represents the 'into' portion of a group join clause in C# LINQ syntax. Used to specify the identifier that will hold the grouped results.

For example:

 // Group join using into clause
 join category in categories
    on product.CategoryId equals category.Id
    into productCategories

 // Multiple group joins
 join orders in db.Orders
    on customer.Id equals orders.CustomerId
    into customerOrders
 join returns in db.Returns
    on customer.Id equals returns.CustomerId
    into customerReturns
 
  • Constructor Details

    • JoinIntoClause

      public JoinIntoClause()
  • Method Details

    • acceptCSharp

      public <P> org.openrewrite.java.tree.J acceptCSharp(CSharpVisitor<P> v, P p)
      Specified by:
      acceptCSharp in interface Cs