Good afternoon.
I'm trying to make a left outer join (SQL)
with LINQ, however, I'm not getting it.
The code for my class, this is below. Can anyone give me a light on how to 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);
}
}