I have two tables. For simplistic reasons will call them Table A and Table B,
Table A:
ID int(PK)
customername varchar
customeraddy varchar
inservice boolean
etc varchar
etc varchar
Table B:
PKID int(PK)
ID int()
linename varchar
Just looking for a LINQ query that can select all values from a joined table of Table A and Table B on the ID column where inservice == "true" that omits any duplicates based on ID (because Table B has multiple duplicates of ID).
So far this is what i have:
from x in db.tableA
join y in db.tableB on x.id equals y.id
where x.inservice == "true"
select y);