select fieldA from TableA
where fieldA = 459249 and
fieldB in (
select FieldC
from TableB
where FieldD in
(
select cte.FieldE
from TableC cte
where key= 'ABDC123'
)
)
I got to the point below, the project does not compile:
TableA.Where(x => x.FieldA == 459249)
.Select(x => x.FieldA .Contains(TableB.Select(i => i.FieldB).Contains
(
TableC.Where(c => c.FieldC== "ABDC123").Select(c => c.FieldD).ToString()
)
));