how to make a right join mit LINQ to SQL & C#

Hey Leute, ich habe da ein problem, erstellen Sie die folgende SQL-Anweisung mithilfe der LINQ - & 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

Habe ich diese

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);
}

Dies nicht tun, ein right join, so dass jeder Ideen?

InformationsquelleAutor franko_camron | 2012-03-28

Schreibe einen Kommentar