如何将此查询翻译为Linq查询。
var parent= "SELECT * FROM T_Table1 WHERE numofId="+ SELECT aggID FROM T_Table1 WHERE inId='" + instance.inId + "')";
我试过这个,但它没有给出相同的结果:
var parents =(from parent in listInParameters
where instance.aggID == parent.numofId
select parent).ToList();