How can I write below sql query in linq
select * from Product where ProductTypePartyID IN ( select Id from ProductTypeParty where PartyId = 34 ) <
select * from Product where ProductTypePartyID IN ( select Id from ProductTypeParty where PartyId = 34 )
You use the Contains in a Where clause.
Something along these lines (untested):
var results = Product.Where(product => ProductTypeParty .Where(ptp => ptp.PartyId == 34) .Select(ptp => ptp.Id) .Contains(product.Id) );