Hi guys, I had a problem creating the following SQL statement using LINQ and C #
select c.IDAddenda, c.Descripcion from CatAddendas c right join EmpresaAddenda e on e.IDAddenda = c.IDAddenda where e.rfc = 'SUL010720JN8' order by c.IDAddenda asc
I got it
public IEnumerable<CatAddenda> TraeAddendas(string rfc) { DataClasses1DataContext dc = new DataClasses1DataContext(...); return (from adds in dc.EmpresaAddendas cats.IDAddenda into joined where adds.RFC == rfc select adds.CatAddenda); }
This does not make the correct connection, so any ideas?
source share