我有下面的sql,我想用linq转换为C#。有人能告诉我如何用linq做到最好?如何将此sql转换为Linq C#
select A.field1, A.Field2, A.Field4, A.Field5, A.Field4 ,A.Field6
from MPhoneParts A
where A.Field3= 'Batteri' AND NOT EXIST(
select * from MPhoneParts B where
B.Field3='cover'
A.Field2= B.Field2 AND
A.Field4= B.Field4 AND
B.Field6='Production354')
干杯 迈克
使用现有的SQL表是两个最有可能'db.MPhoneParts';显示的查询中的“A”和“B”只是别名 –
@Marc:Doh,谢谢,编辑。 –