3
Good afternoon.
I’m trying to make a left outer join (SQL)
with LINQ, however, I’m not getting.
The code of my class, is this one below. Can anyone give me a light on how I solve this?
public class PessoaController : Controller
{
// GET: Pessoa
public ActionResult Index(string _nome )
{
Entities banco = new Entities();
List<PESSOASFJ> listapessoa = (from pes in banco.PESSOASFJ
join nf in banco.NOTAFISCALCAPA on pes.IDPESSOAFJ equals nf.PESSOASFJ into GrupoNF
from b in GrupoNF
Where(p => p.Contains(_nome.ToUpper())) select pes).ToList();
return View(listapessoa);
}
}
Would be a
LEFT JOIN
of PERSONS with NOTAFISCALCAPA ?– Caique Romero