How to convert the code select
down into LINQ?
select * from producao
where id not in
(select idProducao from bpi)
How to convert the code select
down into LINQ?
select * from producao
where id not in
(select idProducao from bpi)
producao.Where(p=>!bpi.Select(p=>p.idProducao).ToList().Contains(id))
You can do this:
db.Producao.Where(p => !db.Bpi.Select(b => b.idProducao).Contains(c.Id));