How do I select relationships via LINQPad?
I have a simple table structure
Images(image_id, image_library_id,...) Links(link_id, image_id, link_component_code...)
I am trying to execute a simple query using LINQ
var q = from i in Images where i.Link.link_component_code = "x" select i;
However intellisense in LINQPad does not provide a Link object in
where i.Link.link_component_code
instead, I only get the References object, which is an EntitySet, and does not navigate to the list of table fields like Add, Select, Where, etc.
However, if I do it the other way around
var q = from l in Links where l.Image.image_library_id = 1234 select l;
It works as expected
What is this EntitySet and where am I going wrong?
0
a source to share