How it will look this in Linq RRS feed

  • Question

  • I'm getting a little confuse with Linq sintax...
    Using web.Ria i am trying to do  something like:
    Select * from Documentos where Id in(select idDoc  from RtemaDoc where idTema =tema)

    i was guessing something like:



    <Documentos> res = this.ObjectContext.Documentos.Contains(e=>e == this.ObjectContext.RTemaDoc.Where(td=>td.IdTema==tema));

    but that's obviously bad... what does the correct sintax should look like?
    Thanks a lot in advance and i am awareness that this is something like a newbie question and maybe ot of the reach of this forum.

    Friday, March 5, 2010 3:03 PM