I'm new in Linq, and I want to convert this sql Query to Linq Format.
This is the SQL format
select *
from investorwallets iw
where transactionid in
(select investordepositid from investordeposits)
or transactionid in
(select withdrawalid from investorwithdrawals)
or transactionid in
(select paymentdistributionid from paymentdistributions)
I've looked on this SO Question too, but no luck for me
EDIT
This is what I have tried. I use Linqpad for testing it
from iw in Investorwallets
where (
from id in Investordeposits // I got error from here
select id.investordepositid
)
Anyone can help me?
Thank you
.Contains(iw.transactionid). Then do the similar for other criterias with||between and you are done.