Is there any method that is the oposite of .Equals?

I wrote this code. But I wonder if do I have a way of getting the informations I have in one table, but do not have in the other, but changing only the equal method??

var parametrizacaoAcessos = from permi in Contexto.tbNomePermissao
join aces in Contexto.tbSistemaPermissaoVendas
on permi.CodigoPermissao equals
select new { aces.CodigoPermissao };

What you’re looking for is called “outer join” and the way to write that in LINQ is to use join into, followed by DefaultIfEmpty(). See this Stack Overflow answer for a complete example.

.NET Foundation Website | Blog | Projects | Code of Conduct