저는 Linq에서 새롭고이 SQL 쿼리를 Linq 형식으로 변환하려고합니다. 다중 수행 방법 Linq에서 선택 위치
이
나도이 SO 질문에보고 한 SQL 형식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)
이지만위한 행운 나
편집이 내가 시도 무엇
. 나는 그것을 테스트하기 위해 Linqpad를 사용한다.
from iw in Investorwallets
where (
from id in Investordeposits // I got error from here
select id.investordepositid
)
누구든지 나를 도울 수 있는가?
는
이 (.Contains'IW를 추가합니다. transactionid)'. 그런 다음 다른 기준들과 유사하게 '||'를 쓰면 끝납니다. –