LINQ in Action roller

easy linq question

hi all, i have two tables ('TableA', and 'TableC' with a join/cross reference ('TableB' in between them. i'd like to get all of the items from table 'TableA' that are joined to 'TableC', where TableC.SomeID = someID. the query should look something like this: var dbItems = (from i in db.TableA where i.ID == (from j in db.TableB where j.SomeID == someID select j.ID.GetValueOrDefault()) select i); but that doesn't work build because you can't convert IQueriable to int. which makes some sense. so how Read More...
Published Tuesday, November 18, 2008 3:35 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication