'On' expected

A Join or Group Join clause has been specified without an On operator. You use the On operator to identify the key field of the range variable for each collection. Key fields are used to match items from each collection.

Error ID: BC36618

To correct this error

  • Add the On operator and key fields to the Join or Group Join clause. Following is an example:

    Dim petOwnersJoin = From pers In people _
                        Join pet In pets _
                        On pet.Owner Equals pers _
                        Select pers.FirstName, PetName = pet.Name
    

See Also

Tasks

How to: Combine Data with LINQ by Using Joins (Visual Basic)

Concepts

Introduction to LINQ in Visual Basic

Reference

Join Clause (Visual Basic)

Group Join Clause (Visual Basic)

Other Resources

LINQ in Visual Basic