In this article we use a model created with the help of Entity Developer (read more about it in the section Using Entity Developer) or created manually (read more about it in the section Creating LinqConnect Classes Manually).
Now you can use relationships when you write queries simply by referring to the relationship properties defined in your class.
Note: |
---|
To run samples from this article include the following namespace before your code: |
Use the following examples for quering accross relationships:
The above query uses the Orders property to form the cross product between companies and orders, producing a new sequence of Company and Order pairs.
It's also possible to do the reverse.
In this example, the orders are queried and the company relationship is used to access information on the associated company object.