I use JayData liberary and I want to know that it is possible to simulate inner join in JayData, like:
Customers inner join Orders on
Customers.CustomerID = Orders.CustomerID
and how it could be possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AdHoc joins in general are not yet supported by JayData in the current release. It’s on the roadmap though.
It is however possible to achieve similar behavior on a number of ways, depending on your needs and the underlying data provider. I assume you are using the OData provider.
In this case you can use navigation properties to represent the relation and thus achieve an implicit join on queryies.
Entity and context definition:
1) query orders by customer:
2) query customer by orders: this is new feature released in JayData 1.1 (make sure to update your files)